allow zooming on low resolutions as well (worms2)

This commit is contained in:
FunkyFr3sh 2024-05-08 07:17:54 +02:00
parent d97dd8e106
commit 38b553191f
2 changed files with 7 additions and 2 deletions

View file

@ -685,7 +685,7 @@ BOOL util_detect_low_res_screen()
}
else if (g_ddraw.isworms2)
{
if ((*pW2DS)->RenderWidth < g_ddraw.width && (*pW2DS)->RenderHeight < g_ddraw.height)
if ((*pW2DS)->RenderWidth && (*pW2DS)->RenderWidth < g_ddraw.width && (*pW2DS)->RenderHeight < g_ddraw.height)
{
if (g_ddraw.upscale_hack_width != (*pW2DS)->RenderWidth || g_ddraw.upscale_hack_height != (*pW2DS)->RenderHeight)
{