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:
parent
addd3538b5
commit
ca0589ebc6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user