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

fix warning

This commit is contained in:
FunkyFr3sh 2024-05-08 07:10:35 +02:00
parent 54d6ff5112
commit d97dd8e106

View File

@ -657,7 +657,7 @@ BOOL util_detect_low_res_screen()
static LPW2DDSTRUCT* pW2DS;
if (!pW2DS)
pW2DS = (char*)GetModuleHandleA(NULL) + 0x799C4;
pW2DS = (LPW2DDSTRUCT*)((DWORD)GetModuleHandleA(NULL) + 0x799C4);
if (g_ddraw.width <= g_ddraw.upscale_hack_width || g_ddraw.height <= g_ddraw.upscale_hack_height)
{