]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix Overscan+ missing bottom right OCS Denise "blanking bug"
authorToni Wilen <twilen@winuae.net>
Sat, 31 Jan 2026 14:40:32 +0000 (16:40 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 31 Jan 2026 14:40:32 +0000 (16:40 +0200)
drawing.cpp

index 7145c6d0f4baed70a3300bb43c92f96dc2812090..f79f01348a32718fd67de26cb4424a21e1dcec32 100644 (file)
@@ -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();