From: Toni Wilen Date: Wed, 27 Mar 2024 18:58:54 +0000 (+0200) Subject: Make sure weird vblank where vblank starts after vsync end is visible, only if extrem... X-Git-Tag: 5300~58 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=ed756a6d31f390921f050811bd48ecc58e1a3545;p=francis%2Fwinuae.git Make sure weird vblank where vblank starts after vsync end is visible, only if extreme or ultra extreme overscan. --- diff --git a/custom.cpp b/custom.cpp index 2ebe4d20..f1c4c90e 100644 --- a/custom.cpp +++ b/custom.cpp @@ -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; }