mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
fix kknd high res patch hack
This commit is contained in:
parent
d28273cf35
commit
d57e0757d0
@ -36,8 +36,19 @@ HRESULT dds_Blt(IDirectDrawSurfaceImpl *This, LPRECT lpDestRect, LPDIRECTDRAWSUR
|
|||||||
|
|
||||||
dbg_dump_dds_blt_flags(dwFlags);
|
dbg_dump_dds_blt_flags(dwFlags);
|
||||||
|
|
||||||
if (g_ddraw->iskkndx && (dwFlags & DDBLT_COLORFILL) && lpDestRect && lpDestRect->right == 640 && lpDestRect->bottom == 480)
|
if (g_ddraw->iskkndx &&
|
||||||
|
(dwFlags & DDBLT_COLORFILL) &&
|
||||||
|
lpDestRect &&
|
||||||
|
lpDestRect->right == 640 &&
|
||||||
|
lpDestRect->bottom == 480)
|
||||||
|
{
|
||||||
|
if (This->backbuffer)
|
||||||
|
{
|
||||||
|
dds_Blt(This->backbuffer, lpDestRect, NULL, NULL, dwFlags, lpDDBltFx);
|
||||||
|
}
|
||||||
|
|
||||||
lpDestRect = NULL;
|
lpDestRect = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
RECT src_rect = { 0, 0, src_surface ? src_surface->width : 0, src_surface ? src_surface->height : 0 };
|
RECT src_rect = { 0, 0, src_surface ? src_surface->width : 0, src_surface ? src_surface->height : 0 };
|
||||||
RECT dst_rect = { 0, 0, This->width, This->height };
|
RECT dst_rect = { 0, 0, This->width, This->height };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user