- Implement Gdi32 counterpart SetStretchBltMode for Win32k.

svn path=/trunk/; revision=57699
This commit is contained in:
James Tabor
2012-11-11 03:18:21 +00:00
parent 5b39db6a1e
commit 22bcb6ceaf
2 changed files with 24 additions and 0 deletions
+1
View File
@@ -173,6 +173,7 @@ UINT FASTCALL IntGdiSetTextAlign(HDC hDC, UINT Mode);
VOID FASTCALL DCU_SetDcUndeletable(HDC);
BOOL FASTCALL IntSetDefaultRegion(PDC);
ULONG TranslateCOLORREF(PDC pdc, COLORREF crColor);
int FASTCALL GreSetStretchBltMode(HDC hdc, int iStretchMode);
+23
View File
@@ -96,6 +96,29 @@ IntGdiSetTextColor(HDC hDC,
return crOldColor;
}
int
FASTCALL
GreSetStretchBltMode(HDC hDC, int iStretchMode)
{
PDC pdc;
PDC_ATTR pdcattr;
INT oSMode = 0;
pdc = DC_LockDc(hDC);
if (pdc)
{
pdcattr = pdc->pdcattr;
oSMode = pdcattr->lStretchBltMode;
pdcattr->lStretchBltMode = iStretchMode;
// Wine returns an error here. We set the default.
if ((iStretchMode <= 0) || (iStretchMode > MAXSTRETCHBLTMODE)) iStretchMode = WHITEONBLACK;
pdcattr->jStretchBltMode = iStretchMode;
}
return oSMode;
}
VOID
FASTCALL
DCU_SetDcUndeletable(HDC hDC)