]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Adjust hsync end in programmed modes.
authorToni Wilen <twilen@winuae.net>
Sun, 10 Dec 2023 16:45:52 +0000 (18:45 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 10 Dec 2023 16:45:52 +0000 (18:45 +0200)
custom.cpp

index 7aa57984fb039f36827857e551e2fd3accfac165..9cc7429717569cd51e3b358f9382d45aa3de3170 100644 (file)
@@ -7162,7 +7162,7 @@ static void init_beamcon0(bool fakehz)
                        int hp2 = maxhpos * 2;
                        if (exthblank) {
 
-                               int hb = 0;
+                               int hb = 1;
                                int hbstrtx = (hbstrt & 0xff) * 2;
                                int hbstopx = (hbstop & 0xff) * 2;
                                if (aga_mode) {
@@ -7183,8 +7183,8 @@ static void init_beamcon0(bool fakehz)
                                if (hbstopx > hp2 / 2) {
                                        hbstopx = 0;
                                }
-                               if (hb < 0) {
-                                       hb = 0;
+                               if (hb < 1) {
+                                       hb = 1;
                                }
 
 #if 0
@@ -7198,8 +7198,8 @@ static void init_beamcon0(bool fakehz)
                                        hsz = hsstop - hsstrt;
                                }
 #endif
-                               maxhpos_display = maxhpos - (hb / 2);
-                               hsstop_detect = hbstopx;
+                               maxhpos_display = maxhpos - ((hb + 1) / 2);
+                               hsstop_detect = hbstopx - 1;
 
                        } else {