Some fixes to the UI code.

This commit is contained in:
OBattler
2021-04-17 22:43:31 +02:00
parent 877cf20e01
commit 3497ed71c2
2 changed files with 8 additions and 2 deletions

View File

@@ -499,7 +499,10 @@ main_thread(void *param)
/* If needed, handle a screen resize. */
if (doresize && !video_fullscreen) {
plat_resize(scrnsz_x, scrnsz_y);
if (vid_resize & 2)
plat_resize(fixed_size_x, fixed_size_y);
else
plat_resize(scrnsz_x, scrnsz_y);
doresize = 0;
}
}

View File

@@ -1347,7 +1347,10 @@ ui_init(int nCmdShow)
}
/* Set up the current window size. */
plat_resize(scrnsz_x, scrnsz_y);
if (vid_resize & 2)
plat_resize(fixed_size_x, fixed_size_y);
else
plat_resize(scrnsz_x, scrnsz_y);
/* Fire up the machine. */
pc_reset_hard_init();