mirror of
https://github.com/LIV2/WinUAE.git
synced 2025-12-06 00:12:52 +00:00
Window size must be divisible by 4.
This commit is contained in:
parent
0284ace39d
commit
a2d0e84336
4
main.cpp
4
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user