From 8c3fa2a3bf079424529a49b58f0466e4285d5874 Mon Sep 17 00:00:00 2001 From: PeterN Date: Sat, 8 May 2021 09:54:32 +0100 Subject: [PATCH] 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. --- src/highscore_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp index b1c428a768..356235fa03 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(