Fix Windows builds

This commit is contained in:
Cacodemon345
2022-07-07 14:52:30 +06:00
parent 90ba53e4e8
commit 2bd4c67577

View File

@@ -552,11 +552,12 @@ main_thread(void *param)
Sleep(1);
/* If needed, handle a screen resize. */
if (!atomic_flag_test_and_set(&doresize) && !video_fullscreen && !is_quit) {
if (atomic_load(&doresize_monitors[0]) && !video_fullscreen && !is_quit) {
if (vid_resize & 2)
plat_resize(fixed_size_x, fixed_size_y);
else
plat_resize(scrnsz_x, scrnsz_y);
atomic_store(&doresize_monitors[0]);
}
}