From 92213d40d648954651df54316248957f807ae413 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 20 Apr 2026 18:56:34 +0300 Subject: [PATCH] OCS Denise NTSC overscan/overscan+ fix --- drawing.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index c8f00ebf..990abfd4 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -5728,6 +5728,8 @@ static void get_line(int monid, int gfx_ypos, enum nln_how how, int lol_shift_pr denise_pixtotal -= xshift; } + denise_pixtotal *= 2; + buf1 = (uae_u32*)xlinebuffer; if (!xlinebuffer2) { xlinebuffer2 = xlinebuffer; @@ -5756,10 +5758,11 @@ static void get_line(int monid, int gfx_ypos, enum nln_how how, int lol_shift_pr } } } + if (denise_strlong_seen && currprefs.gfx_overscanmode < OVERSCANMODE_EXTREME && !ecs_denise) { + int size = currprefs.gfx_overscanmode <= OVERSCANMODE_OVERSCAN ? 2 : 1; + denise_pixtotal -= 4 * size; + } } - - denise_pixtotal_max--; - denise_pixtotal *= 2; if (buf1) { int maxw = addrdiff((uae_u32*)xlinebuffer_end, buf1); -- 2.47.3