Fix window resize not always working

Change doresize to atomic_flag to prevent race condition
This commit is contained in:
ts-korhonen
2021-12-17 22:15:21 +02:00
parent 3a5c0383c2
commit 805638ddd8
6 changed files with 22 additions and 18 deletions

View File

@@ -133,7 +133,7 @@ SpecifyDimensionsDialogProcedure(HWND hdlg, UINT message, WPARAM wParam, LPARAM
scrnsz_x = fixed_size_x;
scrnsz_y = fixed_size_y;
doresize = 1;
atomic_flag_clear(&doresize);
GetWindowRect(hwndMain, &r);