Changeset - r25405:cce63fd35e69
[Not reviewed]
master
0 1 0
PeterN - 3 years ago 2021-05-08 08:54:32
peter1138@openttd.org
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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/highscore_gui.cpp
Show inline comments
 
@@ -205,7 +205,7 @@ struct HighScoreWindow : EndGameHighScor
 
};
 

	
 
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(
0 comments (0 inline, 0 general)