]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Make sure weird vblank where vblank starts after vsync end is visible, only if extrem...
authorToni Wilen <twilen@winuae.net>
Wed, 27 Mar 2024 18:58:54 +0000 (20:58 +0200)
committerToni Wilen <twilen@winuae.net>
Wed, 27 Mar 2024 18:58:54 +0000 (20:58 +0200)
custom.cpp

index 2ebe4d20b05665f2ac0a10afdc048ba0ab275449..f1c4c90e3240cc926ff62b53e9e4ae01d7bdbabe 100644 (file)
@@ -7351,6 +7351,13 @@ static void init_beamcon0(bool fakehz)
                if (vsstrt > 0 && vsstrt < maxvpos / 2) {
                        maxvpos_display_vsync += vsstrt - 1;
                }
+               // if (weird mode where) vblank starts after vsync start+3: minfirstline = vsstrt+3
+               if (currprefs.gfx_overscanmode >= OVERSCANMODE_EXTREME && firstblankedline >= vsstrt + 3 && minfirstline > vsstrt + 3 && firstblankedline < minfirstline) {
+                       minfirstline = vsstrt + 3;
+                       if (minfirstline_hw > minfirstline) {
+                               minfirstline_hw = minfirstline;
+                       }
+               }
        } else {
                firstblankedline = maxvpos + 1;
        }