Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.
(cherry picked from commit 4791ff2862
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
43a3a233df
commit
a469b4f395
@@ -533,7 +533,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
|
||||
@@ -548,7 +548,7 @@ struct GameOptionsWindow : Window {
|
||||
ClearAllCachedNames();
|
||||
UpdateAllVirtCoords();
|
||||
CheckBlitter();
|
||||
ReInitAllWindows();
|
||||
ReInitAllWindows(false);
|
||||
FlushDeparturesWindowTextCaches();
|
||||
break;
|
||||
|
||||
@@ -577,7 +577,7 @@ struct GameOptionsWindow : Window {
|
||||
UpdateCursorSize();
|
||||
UpdateAllVirtCoords();
|
||||
FixTitleGameZoom();
|
||||
ReInitAllWindows();
|
||||
ReInitAllWindows(true);
|
||||
FlushDeparturesWindowTextCaches();
|
||||
}
|
||||
break;
|
||||
@@ -592,6 +592,7 @@ struct GameOptionsWindow : Window {
|
||||
ClearFontCache();
|
||||
LoadStringWidthTable();
|
||||
UpdateAllVirtCoords();
|
||||
ReInitAllWindows(true);
|
||||
FlushDeparturesWindowTextCaches();
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user