]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Overscan+ HBSTRT parameter calculation fix (relative to endhpos)
authorToni Wilen <twilen@winuae.net>
Sat, 10 Feb 2024 16:48:56 +0000 (18:48 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 10 Feb 2024 16:48:56 +0000 (18:48 +0200)
drawing.cpp

index 2af21ba969ec9e725410947536f77d5beecba344..1c0240088d4d4d0d670bb5c15612b3856d4d13c3 100644 (file)
@@ -665,7 +665,7 @@ static void set_hblanking_limits(void)
        } else if (currprefs.gfx_overscanmode <= OVERSCANMODE_OVERSCAN) {
                doblank = true;
        } else if (currprefs.gfx_overscanmode == OVERSCANMODE_BROADCAST) {
-               hbstrt = (239 << CCK_SHRES_SHIFT) - 3;
+               hbstrt = ((maxhpos_short + 12) << CCK_SHRES_SHIFT) - 3;
                doblank = true;
        } else if (currprefs.gfx_overscanmode >= OVERSCANMODE_ULTRA) {
                doblank = true;