- Implement Gdi32 counterpart SetStretchBltMode for Win32k.
svn path=/trunk/; revision=57699
VOID FASTCALL DCU_SetDcUndeletable(HDC);
BOOL FASTCALL IntSetDefaultRegion(PDC);
ULONG TranslateCOLORREF(PDC pdc, COLORREF crColor);
+int FASTCALL GreSetStretchBltMode(HDC hdc, int iStretchMode);
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)