Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed May 8, 2024
1 parent 54d6ff5 commit d97dd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit d97dd8e

Please sign in to comment.