set and restore mode

This commit is contained in:
FunkyFr3sh 2024-05-27 04:02:48 +02:00
parent f2bee3d0d2
commit c0d8c77f90

View file

@ -835,7 +835,11 @@ BOOL WINAPI fake_WinGStretchBlt(
int wSrc, int wSrc,
int hSrc) int hSrc)
{ {
return fake_StretchBlt(hdcDest, xDest, yDest, wDest, hDest, hdcSrc, xSrc, ySrc, wSrc, hSrc, SRCCOPY); int mode = SetStretchBltMode(hdcDest, COLORONCOLOR);
BOOL result = fake_StretchBlt(hdcDest, xDest, yDest, wDest, hDest, hdcSrc, xSrc, ySrc, wSrc, hSrc, SRCCOPY);
SetStretchBltMode(hdcDest, mode);
return result;
} }
BOOL WINAPI fake_BitBlt( BOOL WINAPI fake_BitBlt(