From a2d0e84336478c1461f411fe524b91bfcdd4ebea Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 6 Jan 2024 17:49:28 +0200 Subject: [PATCH] Window size must be divisible by 4. --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 5cb48654..aa088e76 100644 --- 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); -- 2.47.3