From 5ed2c2761d4e8e5ddcea39bcc760ccd83da64ebf Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 29 May 2021 10:51:05 +0200 Subject: [PATCH] adjust genie engine presets --- src/config.c | 8 +++++++- src/ddsurface.c | 2 -- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index d0a7feb..1a94cbe 100644 --- a/src/config.c +++ b/src/config.c @@ -370,18 +370,22 @@ static void cfg_create_ini() "\n" "; Age of Empires\n" "[empires]\n" + "fixpitch=true\n" "handlemouse=false\n" "\n" "; Age of Empires: The Rise of Rome\n" "[empiresx]\n" + "fixpitch=true\n" "handlemouse=false\n" "\n" "; Age of Empires II\n" "[EMPIRES2]\n" + "fixpitch=true\n" "handlemouse=false\n" "\n" "; Age of Empires II: The Conquerors\n" "[age2_x1]\n" + "fixpitch=true\n" "handlemouse=false\n" "\n" "; Outlaws\n" @@ -397,10 +401,12 @@ static void cfg_create_ini() "\n" "; Star Wars: Galactic Battlegrounds\n" "[battlegrounds]\n" + "fixpitch=true\n" "handlemouse=false\n" "\n" "; Star Wars: Galactic Battlegrounds: Clone Campaigns\n" "[battlegrounds_x1]\n" + "fixpitch=true\n" "handlemouse=false\n" "\n" "; Carmageddon 2\n" @@ -559,7 +565,7 @@ static void cfg_create_ini() "[Tzar]\n" "handlemouse=false\n" "\n" - "; Jagged Alliance 2\n" + "; Jagged Alliance 2 1.13\n" "[ja2]\n" "hook=0\n" "\n" diff --git a/src/ddsurface.c b/src/ddsurface.c index 3c341a1..4d09245 100644 --- a/src/ddsurface.c +++ b/src/ddsurface.c @@ -1073,9 +1073,7 @@ HRESULT dd_CreateSurface(LPDDSURFACEDESC lpDDSurfaceDesc, LPDIRECTDRAWSURFACE FA if (dst_surface->width && dst_surface->height) { - if (dst_surface->width == 622 && dst_surface->height == 51) dst_surface->width = 624; //AoE2 if (dst_surface->width == 71 && dst_surface->height == 24) dst_surface->width = 72; //Commandos - if (dst_surface->width == 343 && g_ddraw->bpp == 16) dst_surface->width = 344; //Blade & Sword dst_surface->lx_pitch = dst_surface->bpp / 8; dst_surface->l_pitch = dst_surface->width * dst_surface->lx_pitch;