From 46d533a45477e726269d46b7d0bbbead0b611aea Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 10 Feb 2024 18:48:56 +0200 Subject: [PATCH] Overscan+ HBSTRT parameter calculation fix (relative to endhpos) --- drawing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drawing.cpp b/drawing.cpp index 2af21ba9..1c024008 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -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; -- 2.47.3