mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: Insufficient space for labels on smallmap legend.
This commit is contained in:
parent
186829b99f
commit
a8aba06a07
|
@ -1186,7 +1186,7 @@ void SmallMapWindow::RebuildColourIndexIfNecessary()
|
||||||
this->legend_width = (FONT_HEIGHT_SMALL - ScaleGUITrad(1)) * 8 / 5;
|
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 */
|
/* 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()
|
/* virtual */ void SmallMapWindow::OnPaint()
|
||||||
|
|
Loading…
Reference in New Issue