]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Lores resolution mode HDIW fix.
authorToni Wilen <twilen@winuae.net>
Fri, 1 Oct 2021 19:49:45 +0000 (22:49 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 1 Oct 2021 19:49:45 +0000 (22:49 +0300)
custom.cpp

index 344ac02501740467dc3e33600eb77e59c55bafa0..d59c46ed332c5e100b1220d1ceadb9164e2e1ccc 100644 (file)
@@ -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;
 }