]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Interlace screen height fix.
authorToni Wilen <twilen@winuae.net>
Sat, 12 Oct 2024 14:28:54 +0000 (17:28 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 12 Oct 2024 14:28:54 +0000 (17:28 +0300)
drawing.cpp

index 70e491f37fe076525748e1707b399decdd7c4c04..7c6897159fe1bdec43a0179a742d444f33bcba09 100644 (file)
@@ -631,8 +631,8 @@ int get_vertical_visible_height(bool useoldsize)
                if (hardwired) {
                        get_vblanking_limits(&vbstrt, &vbstop, true);
                        int hh = vbstop - vbstrt;
-                       if (interlace_seen && !lof_store) {
-                               hh++;
+                       if (interlace_seen && lof_display) {
+                               hh -= 1 << currprefs.gfx_vresolution;
                        }
                        if (h > hh) {
                                h = hh;