1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

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

@ -377,6 +377,7 @@ Wine (Linux/macOS/Android) only: override `ddraw` in [winecfg](https://wiki.wine
- SimCoaster / Theme Park Inc
- Simon the Sorcerer 1/2 (windows 95 version)
- Sonic 3D Blast
- Soldiers At War
- Space Rangers
- Spec Ops - Ranger Assault (software mode)
- SpongeBob SquarePants: Typing

View File

@ -1724,6 +1724,11 @@ static void cfg_create_ini()
"maxgameticks=30\n"
"limiter_type=4\n"
"\n"
"; Soldiers At War\n"
"[SAW_Game]\n"
"maxgameticks=30\n"
"limiter_type=4\n"
"\n"
"; The Curse Of Monkey Island\n"
"[COMI]\n"
"singlecpu=false\n"

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)
{