Replace rest of the instances with doresize_monitors[0]
This commit is contained in:
@@ -134,7 +134,7 @@ SpecifyDimensionsDialogProcedure(HWND hdlg, UINT message, WPARAM wParam, LPARAM
|
|||||||
|
|
||||||
scrnsz_x = fixed_size_x;
|
scrnsz_x = fixed_size_x;
|
||||||
scrnsz_y = fixed_size_y;
|
scrnsz_y = fixed_size_y;
|
||||||
atomic_flag_clear(&doresize);
|
atomic_store(&doresize_monitors[0], 1);
|
||||||
|
|
||||||
GetWindowRect(hwndMain, &r);
|
GetWindowRect(hwndMain, &r);
|
||||||
|
|
||||||
|
@@ -646,7 +646,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
scrnsz_x = unscaled_size_x;
|
scrnsz_x = unscaled_size_x;
|
||||||
scrnsz_y = unscaled_size_y;
|
scrnsz_y = unscaled_size_y;
|
||||||
atomic_flag_clear(&doresize);
|
atomic_store(&doresize_monitors[0], 0);
|
||||||
config_save();
|
config_save();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -745,7 +745,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
reset_screen_size();
|
reset_screen_size();
|
||||||
device_force_redraw();
|
device_force_redraw();
|
||||||
video_force_resize_set(1);
|
video_force_resize_set(1);
|
||||||
atomic_flag_clear(&doresize);
|
atomic_store(&doresize_monitors[0], 0);
|
||||||
config_save();
|
config_save();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -760,7 +760,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
case IDM_VID_HIDPI:
|
case IDM_VID_HIDPI:
|
||||||
dpi_scale = !dpi_scale;
|
dpi_scale = !dpi_scale;
|
||||||
CheckMenuItem(hmenu, IDM_VID_HIDPI, dpi_scale ? MF_CHECKED : MF_UNCHECKED);
|
CheckMenuItem(hmenu, IDM_VID_HIDPI, dpi_scale ? MF_CHECKED : MF_UNCHECKED);
|
||||||
atomic_flag_clear(&doresize);
|
atomic_store(&doresize_monitors[0], 0);
|
||||||
config_save();
|
config_save();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -860,7 +860,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
/* Main Window. */
|
/* Main Window. */
|
||||||
ResizeWindowByClientArea(hwndMain, temp_x, temp_y + (hide_status_bar ? 0 : sbar_height) + (hide_tool_bar ? 0 : tbar_height));
|
ResizeWindowByClientArea(hwndMain, temp_x, temp_y + (hide_status_bar ? 0 : sbar_height) + (hide_tool_bar ? 0 : tbar_height));
|
||||||
} else if (!user_resize)
|
} else if (!user_resize)
|
||||||
atomic_flag_clear(&doresize);
|
atomic_store(&doresize_monitors[0], 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_WINDOWPOSCHANGED:
|
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) {
|
if (temp_x != scrnsz_x || temp_y != scrnsz_y) {
|
||||||
scrnsz_x = temp_x;
|
scrnsz_x = temp_x;
|
||||||
scrnsz_y = temp_y;
|
scrnsz_y = temp_y;
|
||||||
atomic_flag_clear(&doresize);
|
atomic_store(&doresize_monitors[0], 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (rect.right != scrnsz_x || rect.bottom != scrnsz_y) {
|
if (rect.right != scrnsz_x || rect.bottom != scrnsz_y) {
|
||||||
scrnsz_x = rect.right;
|
scrnsz_x = rect.right;
|
||||||
scrnsz_y = rect.bottom;
|
scrnsz_y = rect.bottom;
|
||||||
atomic_flag_clear(&doresize);
|
atomic_store(&doresize_monitors[0], 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1092,7 +1092,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
/* If window is not resizable, then tell the main thread to
|
/* If window is not resizable, then tell the main thread to
|
||||||
resize it, as sometimes, moves can mess up the window size. */
|
resize it, as sometimes, moves can mess up the window size. */
|
||||||
if (!vid_resize)
|
if (!vid_resize)
|
||||||
atomic_flag_clear(&doresize);
|
atomic_store(&doresize_monitors[0], 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user