Skip to content

Commit

Permalink
add support for Soldiers At War
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Dec 26, 2024
1 parent 93319d4 commit 9ac0054
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 9ac0054

Please sign in to comment.