1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

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 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(