mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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 };
|
POINT pt = { 0 };
|
||||||
real_MapWindowPoints(hwnd, g_ddraw.hwnd, &pt, 1);
|
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 =
|
BOOL result =
|
||||||
real_StretchBlt(
|
real_StretchBlt(
|
||||||
primary_dc,
|
primary_dc,
|
||||||
@ -864,6 +869,8 @@ BOOL WINAPI fake_StretchBlt(
|
|||||||
hSrc,
|
hSrc,
|
||||||
rop);
|
rop);
|
||||||
|
|
||||||
|
SetStretchBltMode(primary_dc, mode);
|
||||||
|
|
||||||
dds_ReleaseDC(g_ddraw.primary, primary_dc);
|
dds_ReleaseDC(g_ddraw.primary, primary_dc);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user