fix: widescreen check only working if res was not cmd set

This commit is contained in:
2026-08-13 00:21:01 -04:00
parent d0362d2458
commit 47ea98fc86
@@ -503,8 +503,9 @@ HRESULT InitDevice()
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);
g_iScreenHeight = GetSystemMetrics(SM_CYSCREEN);
}
g_bWidescreen = (g_iScreenHeight > 0 && ((double)g_iScreenWidth / g_iScreenHeight) >= 1.59) ? TRUE : FALSE;
}
}
g_bWidescreen = (g_iScreenHeight > 0 && ((double)g_iScreenWidth / g_iScreenHeight) >= 1.59) ? TRUE : FALSE;
//str1k3r - stop hardcoding size and just use the screens actual size
UINT width = g_iScreenWidth;