1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

adjust stronghold presets

This commit is contained in:
FunkyFr3sh 2023-08-10 17:24:27 +02:00
parent 845360b021
commit 5ff806a950
2 changed files with 8 additions and 0 deletions

View File

@ -946,16 +946,19 @@ static void cfg_create_ini()
"\n"
"; Stronghold Crusader HD\n"
"[Stronghold Crusader]\n"
"resolutions=2\n"
"stronghold_hack=true\n"
"adjmouse=true\n"
"\n"
"; Stronghold Crusader Extreme HD\n"
"[Stronghold_Crusader_Extreme]\n"
"resolutions=2\n"
"stronghold_hack=true\n"
"adjmouse=true\n"
"\n"
"; Stronghold HD\n"
"[Stronghold]\n"
"resolutions=2\n"
"stronghold_hack=true\n"
"adjmouse=true\n"
"\n"

View File

@ -129,6 +129,11 @@ HRESULT dd_EnumDisplayModes(
flags == m.dmDisplayFlags &&
fixed_output == m.dmDisplayFixedOutput)
{
if (g_ddraw->stronghold_hack && m.dmPelsWidth && (m.dmPelsWidth % 8))
{
while (--m.dmPelsWidth % 8);
}
TRACE(
" %u: %ux%u@%u %u bpp\n",
i,