]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Horizontal overscan blanking backwards compatibility fix.
authorToni Wilen <twilen@winuae.net>
Thu, 2 Dec 2021 18:24:31 +0000 (20:24 +0200)
committerToni Wilen <twilen@winuae.net>
Thu, 2 Dec 2021 18:24:31 +0000 (20:24 +0200)
drawing.cpp

index 45118b718ab313c6425b1cb079c5cda4a178abdb..4aaef18bc2fdb5c9805e1d52c7b5d8bef9053197 100644 (file)
@@ -669,6 +669,10 @@ void check_custom_limits(void)
        int top = fd->gfx_filter_top_border < 0 ? 0 : fd->gfx_filter_top_border;
        int bottom = fd->gfx_filter_bottom_border < 0 ? 0 : fd->gfx_filter_bottom_border;
 
+       // backwards compatibility, old 0x38 start is gone.
+       left += (0x38 * 4) >> (RES_MAX - currprefs.gfx_resolution);
+       right += (0x38 * 4) >> (RES_MAX - currprefs.gfx_resolution);
+
        if (left > visible_left_start)
                visible_left_start = left;
        if (right > left && right < visible_right_stop)