Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.
This commit is contained in:
@@ -530,7 +530,7 @@ struct GameOptionsWindow : Window {
|
||||
case WID_GO_CURRENCY_DROPDOWN: // Currency
|
||||
if (index == CURRENCY_CUSTOM) ShowCustCurrency();
|
||||
this->opt->locale.currency = index;
|
||||
ReInitAllWindows();
|
||||
ReInitAllWindows(false);
|
||||
break;
|
||||
|
||||
case WID_GO_AUTOSAVE_DROPDOWN: // Autosave options
|
||||
@@ -545,7 +545,7 @@ struct GameOptionsWindow : Window {
|
||||
ClearAllCachedNames();
|
||||
UpdateAllVirtCoords();
|
||||
CheckBlitter();
|
||||
ReInitAllWindows();
|
||||
ReInitAllWindows(false);
|
||||
break;
|
||||
|
||||
case WID_GO_RESOLUTION_DROPDOWN: // Change resolution
|
||||
@@ -573,7 +573,7 @@ struct GameOptionsWindow : Window {
|
||||
UpdateCursorSize();
|
||||
UpdateAllVirtCoords();
|
||||
FixTitleGameZoom();
|
||||
ReInitAllWindows();
|
||||
ReInitAllWindows(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -587,6 +587,7 @@ struct GameOptionsWindow : Window {
|
||||
ClearFontCache();
|
||||
LoadStringWidthTable();
|
||||
UpdateAllVirtCoords();
|
||||
ReInitAllWindows(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user