Skip to content

Commit 9ac0054

Browse files
committed
add support for Soldiers At War
1 parent 93319d4 commit 9ac0054

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ Wine (Linux/macOS/Android) only: override `ddraw` in [winecfg](https://wiki.wine
377377
- SimCoaster / Theme Park Inc
378378
- Simon the Sorcerer 1/2 (windows 95 version)
379379
- Sonic 3D Blast
380+
- Soldiers At War
380381
- Space Rangers
381382
- Spec Ops - Ranger Assault (software mode)
382383
- SpongeBob SquarePants: Typing

src/config.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,11 @@ static void cfg_create_ini()
17241724
"maxgameticks=30\n"
17251725
"limiter_type=4\n"
17261726
"\n"
1727+
"; Soldiers At War\n"
1728+
"[SAW_Game]\n"
1729+
"maxgameticks=30\n"
1730+
"limiter_type=4\n"
1731+
"\n"
17271732
"; The Curse Of Monkey Island\n"
17281733
"[COMI]\n"
17291734
"singlecpu=false\n"

src/winapi_hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ int WINAPI fake_GetDeviceCaps(HDC hdc, int index)
986986
}
987987
}
988988

989-
if (width && WindowFromDC(hdc) == GetDesktopWindow())
989+
if (width && ((g_ddraw.hwnd && WindowFromDC(hdc) == g_ddraw.hwnd) || WindowFromDC(hdc) == GetDesktopWindow()))
990990
{
991991
if (index == HORZRES)
992992
{

0 commit comments

Comments
 (0)