mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
[GDI32]
- Do not call BitBlt from StretchBlt when extension matches, this is handled in win32k - Use GdiGetDcAttr svn path=/trunk/; revision=65880
This commit is contained in:
parent
e4cf6cd543
commit
b818c891bf
1 changed files with 19 additions and 28 deletions
|
@ -66,7 +66,13 @@ MoveToEx(
|
|||
}
|
||||
}
|
||||
#endif
|
||||
if (!GdiGetHandleUserData((HGDIOBJ) hdc, GDI_OBJECT_TYPE_DC, (PVOID) &pdcattr)) return FALSE;
|
||||
/* Get the DC attribute */
|
||||
pdcattr = GdiGetDcAttr(hdc);
|
||||
if (pdcattr == NULL)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (ppt)
|
||||
{
|
||||
|
@ -852,33 +858,18 @@ StretchBlt(
|
|||
_In_ INT cySrc,
|
||||
_In_ DWORD dwRop)
|
||||
{
|
||||
if ((cxDest != cxSrc) || (cyDest != cySrc))
|
||||
{
|
||||
return NtGdiStretchBlt(hdcDest,
|
||||
xDest,
|
||||
yDest,
|
||||
cxDest,
|
||||
cyDest,
|
||||
hdcSrc,
|
||||
xSrc,
|
||||
ySrc,
|
||||
cxSrc,
|
||||
cySrc,
|
||||
dwRop,
|
||||
0);
|
||||
}
|
||||
|
||||
return NtGdiBitBlt(hdcDest,
|
||||
xDest,
|
||||
yDest,
|
||||
cxDest,
|
||||
cyDest,
|
||||
hdcSrc,
|
||||
xSrc,
|
||||
ySrc,
|
||||
dwRop,
|
||||
0,
|
||||
0);
|
||||
return NtGdiStretchBlt(hdcDest,
|
||||
xDest,
|
||||
yDest,
|
||||
cxDest,
|
||||
cyDest,
|
||||
hdcSrc,
|
||||
xSrc,
|
||||
ySrc,
|
||||
cxSrc,
|
||||
cySrc,
|
||||
dwRop,
|
||||
0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue