From b4a74154747024406b0fb5843b96137e83694366 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 1 Oct 2021 22:49:45 +0300 Subject: [PATCH] Lores resolution mode HDIW fix. --- custom.cpp | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/custom.cpp b/custom.cpp index 344ac025..d59c46ed 100644 --- a/custom.cpp +++ b/custom.cpp @@ -670,19 +670,25 @@ static void setclr(uae_u16 *p, uae_u16 val) static int adjust_hr(int v) { - if (currprefs.chipset_hr) { - v &= ~(3 >> currprefs.gfx_resolution); + if (currprefs.gfx_resolution >= RES_HIRES) { + if (currprefs.chipset_hr) { + v &= ~(3 >> currprefs.gfx_resolution); + } else { + v &= ~3; + } } else { - v &= ~3; + v &= ~1; } return v; } static int adjust_hr2(int v) { - if (currprefs.chipset_hr) { - v &= ~(1 >> currprefs.gfx_resolution); - } else { - v &= ~1; + if (currprefs.gfx_resolution >= RES_HIRES) { + if (currprefs.chipset_hr) { + v &= ~(1 >> currprefs.gfx_resolution); + } else { + v &= ~1; + } } return v; } -- 2.47.3