Changeset - r28055:69cdf308ef0a
[Not reviewed]
master
0 1 0
Peter Nelson - 13 months ago 2023-10-30 18:34:24
peter1138@openttd.org
Fix: Incorrect padding for smallmap legend 'icon'.

The size of this icon is based off FONT_HEIGHT_SMALL - 1, so it makes sense to use a scaled 1 here.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -1222,7 +1222,7 @@ void SmallMapWindow::RebuildColourIndexI
 
			bool rtl = _current_text_dir == TD_RTL;
 
			uint i = 0; // Row counter for industry legend.
 
			uint row_height = FONT_HEIGHT_SMALL;
 
			int padding = WidgetDimensions::scaled.hsep_normal;
 
			int padding = ScaleGUITrad(1);
 

	
 
			Rect origin = r.WithWidth(this->column_width, rtl).Shrink(WidgetDimensions::scaled.framerect).WithHeight(row_height);
 
			Rect text = origin.Indent(this->legend_width + WidgetDimensions::scaled.hsep_normal, rtl);
0 comments (0 inline, 0 general)