add support for Soldiers At War

This commit is contained in:
FunkyFr3sh 2024-12-26 02:37:54 +01:00
parent 93319d4c83
commit 9ac0054f1a
3 changed files with 7 additions and 1 deletions

View file

@ -986,7 +986,7 @@ int WINAPI fake_GetDeviceCaps(HDC hdc, int index)
}
}
if (width && WindowFromDC(hdc) == GetDesktopWindow())
if (width && ((g_ddraw.hwnd && WindowFromDC(hdc) == g_ddraw.hwnd) || WindowFromDC(hdc) == GetDesktopWindow()))
{
if (index == HORZRES)
{