]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Window size must be divisible by 4.
authorToni Wilen <twilen@winuae.net>
Sat, 6 Jan 2024 15:49:28 +0000 (17:49 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 6 Jan 2024 15:49:28 +0000 (17:49 +0200)
main.cpp

index 5cb4865409f84b598b07cbf1c60279ace307c3c0..aa088e76edbabb2debf4c6f1974e03936e7d96a9 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -167,6 +167,10 @@ static void fixup_prefs_dim2(int monid, struct wh *wh)
                        error_log (_T("Height (%d) must be at least 128."), wh->height);
                wh->height = 128;
        }
+
+       wh->width += 3;
+       wh->width &= ~3;
+
        if (wh->width > max_uae_width) {
                if (!monid)
                        error_log (_T("Width (%d) max is %d."), wh->width, max_uae_width);