summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-22 14:46:14 +0000
committerrubidium <rubidium@openttd.org>2009-11-22 14:46:14 +0000
commitc99d15bf74f438cb7762f4ffdbe9a6a5a092becc (patch)
tree940124a8d258dfcc5217b88c49753b7a83c4ab3d
parent81087052dc41e629cddaa1f57738aad813a4a5c1 (diff)
downloadopenttd-c99d15bf74f438cb7762f4ffdbe9a6a5a092becc.tar.xz
(svn r18225) -Codechange: make the select station window behave better with big fonts
-rw-r--r--src/station_gui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index 8f4602e90..ec031296c 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -1265,7 +1265,7 @@ static const NWidgetPart _nested_select_station_widgets[] = {
NWidget(WWT_CAPTION, COLOUR_DARK_GREEN, JSW_WIDGET_CAPTION), SetDataTip(STR_JOIN_STATION_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
EndContainer(),
NWidget(NWID_HORIZONTAL),
- NWidget(WWT_PANEL, COLOUR_DARK_GREEN, JSW_PANEL), SetMinimalSize(188, 66), SetResize(1, 10), EndContainer(),
+ NWidget(WWT_PANEL, COLOUR_DARK_GREEN, JSW_PANEL), SetResize(1, 0), EndContainer(),
NWidget(NWID_VERTICAL),
NWidget(WWT_SCROLLBAR, COLOUR_DARK_GREEN, JSW_SCROLLBAR),
NWidget(WWT_RESIZEBOX, COLOUR_DARK_GREEN, JSW_RESIZEBOX),
@@ -1307,9 +1307,10 @@ struct SelectStationWindow : Window {
}
resize->height = d.height;
+ d.height *= 5;
d.width += WD_FRAMERECT_RIGHT + WD_FRAMERECT_LEFT;
d.height += WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM;
- *size = maxdim(*size, d);
+ *size = d;
}
virtual void OnPaint()