diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-04-05 18:43:12 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2021-04-30 17:08:15 +0100 |
commit | 4791ff28627eabe6322352428dc1b42344f545b9 (patch) | |
tree | 4bd1a641a0f905f8ddc3a247fd5df73706d089f2 /src/window_func.h | |
parent | 6fe5353da2a0d3d60f8375b28536213e67cd869c (diff) | |
download | openttd-4791ff28627eabe6322352428dc1b42344f545b9.tar.xz |
Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.
Diffstat (limited to 'src/window_func.h')
-rw-r--r-- | src/window_func.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window_func.h b/src/window_func.h index 20866b34d..fba00944a 100644 --- a/src/window_func.h +++ b/src/window_func.h @@ -43,7 +43,11 @@ void DeleteConstructionWindows(); void HideVitalWindows(); void ShowVitalWindows(); -void ReInitAllWindows(); +/** + * Re-initialize all windows. + * @param zoom_changed Set if windows are being re-initialized due to a zoom level changed. + */ +void ReInitAllWindows(bool zoom_changed); void SetWindowWidgetDirty(WindowClass cls, WindowNumber number, byte widget_index); void SetWindowDirty(WindowClass cls, WindowNumber number); |