Changeset - r28054:334afcd76ed3
[Not reviewed]
master
0 1 0
Peter Nelson - 13 months ago 2023-10-30 18:31:53
peter1138@openttd.org
Fix: Insufficient space for labels on smallmap legend.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -1186,7 +1186,7 @@ void SmallMapWindow::RebuildColourIndexI
 
	this->legend_width = (FONT_HEIGHT_SMALL - ScaleGUITrad(1)) * 8 / 5;
 

	
 
	/* The width of a column is the minimum width of all texts + the size of the blob + some spacing */
 
	this->column_width = min_width + this->legend_width + WidgetDimensions::scaled.framerect.Horizontal();
 
	this->column_width = min_width + WidgetDimensions::scaled.hsep_normal + this->legend_width + WidgetDimensions::scaled.framerect.Horizontal();
 
}
 

	
 
/* virtual */ void SmallMapWindow::OnPaint()
0 comments (0 inline, 0 general)