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

copy StretchBltMode from original DC

This commit is contained in:
FunkyFr3sh 2024-06-06 02:29:48 +02:00
parent addd3538b5
commit ca0589ebc6

View File

@ -850,6 +850,11 @@ BOOL WINAPI fake_StretchBlt(
POINT pt = { 0 };
real_MapWindowPoints(hwnd, g_ddraw.hwnd, &pt, 1);
int org_mode = SetStretchBltMode(hdcDest, COLORONCOLOR);
SetStretchBltMode(hdcDest, org_mode);
int mode = SetStretchBltMode(primary_dc, org_mode);
BOOL result =
real_StretchBlt(
primary_dc,
@ -864,6 +869,8 @@ BOOL WINAPI fake_StretchBlt(
hSrc,
rop);
SetStretchBltMode(primary_dc, mode);
dds_ReleaseDC(g_ddraw.primary, primary_dc);
return result;