diff options
author | PeterN <peter1138@openttd.org> | 2021-05-08 09:54:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 09:54:32 +0100 |
commit | 8c3fa2a3bf079424529a49b58f0466e4285d5874 (patch) | |
tree | 3532306f6a10e7020427634f86cdae0349b735cd /src | |
parent | dd41de89315156cf7c5e43872de0863d4c539a95 (diff) | |
download | openttd-8c3fa2a3bf079424529a49b58f0466e4285d5874.tar.xz |
Fix #9209: Excessive time resizing highscore/news window when screen is too small. (#9210)
If the highscore/news window panel size, which is now scaled by GUI zoom, is larger than the screen size, a loop will be entered where the window is repeatedly resized.
This is resolved by removing the minimal size from the panel, as the window is always resized to cover the screen anyway. This means the screen size can never be too small.
Diffstat (limited to 'src')
-rw-r--r-- | src/highscore_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp index b1c428a76..356235fa0 100644 --- a/src/highscore_gui.cpp +++ b/src/highscore_gui.cpp @@ -205,7 +205,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow { }; static const NWidgetPart _nested_highscore_widgets[] = { - NWidget(WWT_PANEL, COLOUR_BROWN, WID_H_BACKGROUND), SetMinimalSize(641, 481), SetResize(1, 1), EndContainer(), + NWidget(WWT_PANEL, COLOUR_BROWN, WID_H_BACKGROUND), SetResize(1, 1), EndContainer(), }; static WindowDesc _highscore_desc( |