From 2593cd3f192a5904e76822bb0014bd86acaccaa9 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 31 Jan 2026 16:40:32 +0200 Subject: [PATCH] Fix Overscan+ missing bottom right OCS Denise "blanking bug" --- drawing.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drawing.cpp b/drawing.cpp index 7145c6d0..f79f0134 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -848,7 +848,6 @@ void set_custom_limits (int w, int h, int dx, int dy, bool blank) visible_bottom_stop = startypos + dy + h; if (currprefs.gfx_overscanmode >= OVERSCANMODE_BROADCAST) { visible_top_start -= 1 << currprefs.gfx_resolution; - visible_bottom_stop += 1 << currprefs.gfx_resolution; } if (visible_top_start < hhadd + startypos) { visible_top_start = hhadd + startypos; @@ -856,6 +855,9 @@ void set_custom_limits (int w, int h, int dx, int dy, bool blank) if ((current_linear_vpos << currprefs.gfx_vresolution) - hhadd2 < visible_bottom_stop) { visible_bottom_stop = (current_linear_vpos << currprefs.gfx_vresolution) - hhadd2; } + if (currprefs.gfx_overscanmode >= OVERSCANMODE_BROADCAST) { + visible_bottom_stop += 1 << currprefs.gfx_resolution; + } } check_custom_limits(); -- 2.47.3