From 2bd4c675772cec23ebb106efa0144606e049f538 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Thu, 7 Jul 2022 14:52:30 +0600 Subject: [PATCH] Fix Windows builds --- src/win/win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win/win.c b/src/win/win.c index 382c58b70..ace45f16b 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -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]); } }