It's 1, not 0

This commit is contained in:
Cacodemon345
2022-07-07 16:11:32 +06:00
parent e287886dfb
commit d7e32aa2ff

View File

@@ -646,7 +646,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
scrnsz_x = unscaled_size_x;
scrnsz_y = unscaled_size_y;
atomic_store(&doresize_monitors[0], 0);
atomic_store(&doresize_monitors[0], 1);
config_save();
break;
@@ -745,7 +745,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
reset_screen_size();
device_force_redraw();
video_force_resize_set(1);
atomic_store(&doresize_monitors[0], 0);
atomic_store(&doresize_monitors[0], 1);
config_save();
break;
@@ -760,7 +760,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
case IDM_VID_HIDPI:
dpi_scale = !dpi_scale;
CheckMenuItem(hmenu, IDM_VID_HIDPI, dpi_scale ? MF_CHECKED : MF_UNCHECKED);
atomic_store(&doresize_monitors[0], 0);
atomic_store(&doresize_monitors[0], 1);
config_save();
break;
@@ -860,7 +860,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
/* Main Window. */
ResizeWindowByClientArea(hwndMain, temp_x, temp_y + (hide_status_bar ? 0 : sbar_height) + (hide_tool_bar ? 0 : tbar_height));
} else if (!user_resize)
atomic_store(&doresize_monitors[0], 0);
atomic_store(&doresize_monitors[0], 1);
break;
case WM_WINDOWPOSCHANGED:
@@ -909,13 +909,13 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
if (temp_x != scrnsz_x || temp_y != scrnsz_y) {
scrnsz_x = temp_x;
scrnsz_y = temp_y;
atomic_store(&doresize_monitors[0], 0);
atomic_store(&doresize_monitors[0], 1);
}
} else {
if (rect.right != scrnsz_x || rect.bottom != scrnsz_y) {
scrnsz_x = rect.right;
scrnsz_y = rect.bottom;
atomic_store(&doresize_monitors[0], 0);
atomic_store(&doresize_monitors[0], 1);
}
}
@@ -1092,7 +1092,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
/* If window is not resizable, then tell the main thread to
resize it, as sometimes, moves can mess up the window size. */
if (!vid_resize)
atomic_store(&doresize_monitors[0], 0);
atomic_store(&doresize_monitors[0], 1);
break;
}