Window size is now set back to the remembered one when returning from Full Screen when the window is resizable and set to remember the size, fixes #1142.
This commit is contained in:
@@ -810,6 +810,10 @@ plat_setfullscreen(int on)
|
|||||||
plat_resize(scrnsz_x, scrnsz_y);
|
plat_resize(scrnsz_x, scrnsz_y);
|
||||||
if (vid_resize) {
|
if (vid_resize) {
|
||||||
/* scale the screen base on DPI */
|
/* scale the screen base on DPI */
|
||||||
|
if (window_remember) {
|
||||||
|
temp_x = window_w;
|
||||||
|
temp_y = window_h;
|
||||||
|
} else {
|
||||||
if (dpi_scale) {
|
if (dpi_scale) {
|
||||||
temp_x = MulDiv(unscaled_size_x, dpi, 96);
|
temp_x = MulDiv(unscaled_size_x, dpi, 96);
|
||||||
temp_y = MulDiv(unscaled_size_y, dpi, 96);
|
temp_y = MulDiv(unscaled_size_y, dpi, 96);
|
||||||
@@ -817,6 +821,7 @@ plat_setfullscreen(int on)
|
|||||||
temp_x = unscaled_size_x;
|
temp_x = unscaled_size_x;
|
||||||
temp_y = unscaled_size_y;
|
temp_y = unscaled_size_y;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* Main Window. */
|
/* Main Window. */
|
||||||
ResizeWindowByClientArea(hwndMain, temp_x, temp_y + sbar_height);
|
ResizeWindowByClientArea(hwndMain, temp_x, temp_y + sbar_height);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user