Changeset - r28468:1d1bbe19d177
[Not reviewed]
master
0 1 0
Peter Nelson - 11 months ago 2024-01-15 23:02:25
peter1138@openttd.org
Fix: NWidgetParts must use unscaled dimensions. (#11794)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/league_gui.cpp
Show inline comments
 
@@ -423,13 +423,13 @@ static const NWidgetPart _nested_script_
 
	NWidget(NWID_HORIZONTAL),
 
		NWidget(WWT_CLOSEBOX, COLOUR_BROWN),
 
		NWidget(WWT_CAPTION, COLOUR_BROWN, WID_SLT_CAPTION), SetDataTip(STR_JUST_RAW_STRING, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
 
		NWidget(WWT_SHADEBOX, COLOUR_BROWN),
 
		NWidget(WWT_STICKYBOX, COLOUR_BROWN),
 
	EndContainer(),
 
	NWidget(WWT_PANEL, COLOUR_BROWN, WID_SLT_BACKGROUND), SetMinimalSize(400, 0), SetMinimalTextLines(15, WidgetDimensions::scaled.framerect.Vertical()),
 
	NWidget(WWT_PANEL, COLOUR_BROWN, WID_SLT_BACKGROUND), SetMinimalSize(400, 0), SetMinimalTextLines(15, WidgetDimensions::unscaled.framerect.Vertical()),
 
	EndContainer(),
 
};
 

	
 
static WindowDesc _script_league_desc(__FILE__, __LINE__,
 
	WDP_AUTO, "script_league", 0, 0,
 
	WC_COMPANY_LEAGUE, WC_NONE,
0 comments (0 inline, 0 general)