Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.

This commit is contained in:
Peter Nelson
2021-04-05 18:43:12 +01:00
committed by PeterN
parent 6fe5353da2
commit 4791ff2862
13 changed files with 129 additions and 28 deletions

View File

@@ -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;
}