Use atomic_bool instead of atomic_flag for doresizes

atomic_flag seems to be broken on Windows for clearing them outside the
thread they were tested and set in
This commit is contained in:
Cacodemon345
2022-07-06 01:25:39 +06:00
parent 826a75292f
commit 20d3f0971c
6 changed files with 12 additions and 15 deletions

View File

@@ -1321,7 +1321,7 @@ set_screen_size(int x, int y)
break;
}
atomic_flag_clear(&doresize_monitors[monitor_index_global]);
atomic_store(&doresize_monitors[monitor_index_global], 1);
}