]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix display vertical position changing after reset
authorToni Wilen <twilen@winuae.net>
Thu, 23 Apr 2026 16:10:20 +0000 (19:10 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 23 Apr 2026 16:10:20 +0000 (19:10 +0300)
custom.cpp

index 26a53683ab5ea559fb3f303ea739dd42f96fe838..b077bc051dc0bc48245fabfb67cd52b8c4292a81 100644 (file)
@@ -2089,6 +2089,7 @@ static void init_hz_reset(void)
        linear_vpos = currprefs.ntscmode ? MAXVPOS_NTSC : MAXVPOS_PAL;
        linear_hpos = currprefs.ntscmode ? MAXHPOS_NTSC : MAXHPOS_PAL;
        linear_vpos += lof_store;
+       minfirstline = (currprefs.ntscmode ? VBLANK_ENDLINE_NTSC : VBLANK_ENDLINE_PAL) - 1;
        //linear_vpos -= vsync_startline;
        linear_vpos_prev[0] = linear_vpos;
        linear_vpos_prev[1] = linear_vpos;