From: Toni Wilen Date: Sat, 6 Jan 2024 15:49:28 +0000 (+0200) Subject: Window size must be divisible by 4. X-Git-Tag: 5200~88 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=a2d0e84336478c1461f411fe524b91bfcdd4ebea;p=francis%2Fwinuae.git Window size must be divisible by 4. --- 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);