Window size must be divisible by 4.

This commit is contained in:
Toni Wilen 2024-01-06 17:49:28 +02:00
parent 0284ace39d
commit a2d0e84336

View File

@ -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);