mirror of https://github.com/OpenTTD/OpenTTD.git
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.
This commit is contained in:
parent
dd41de8931
commit
8c3fa2a3bf
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue