summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-11-16 20:40:35 +0000
committerpeter1138 <peter1138@openttd.org>2009-11-16 20:40:35 +0000
commit2e54ff1aa2ed01737a6b1a2a9c77f99f03e4d446 (patch)
treecc48f01caa6b2aeeaf854efb13c7e847c1d84022 /src/station_gui.cpp
parent626de6b128f3580c9559b2d09b15bb4ed314a20a (diff)
downloadopenttd-2e54ff1aa2ed01737a6b1a2a9c77f99f03e4d446.tar.xz
(svn r18127) -Codechange: Adjust station accept/rating list height by number of lines instead of pixels.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index d3974523e..5d4185f2c 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -779,8 +779,8 @@ struct StationViewWindow : public Window {
/** Height of the #SVW_ACCEPTLIST widget for different views. */
enum AcceptListHeight {
- ALH_RATING = 130, ///< Height of the cargo ratings view.
- ALH_ACCEPTS = 30, ///< Height of the accepted cargo view.
+ ALH_RATING = 13, ///< Height of the cargo ratings view.
+ ALH_ACCEPTS = 3, ///< Height of the accepted cargo view.
};
StationViewWindow(const WindowDesc *desc, WindowNumber window_number) : Window()
@@ -812,7 +812,7 @@ struct StationViewWindow : public Window {
break;
case SVW_ACCEPTLIST:
- size->height = WD_FRAMERECT_TOP + ((this->GetWidget<NWidgetCore>(SVW_ACCEPTS)->widget_data == STR_STATION_VIEW_RATINGS_BUTTON) ? ALH_ACCEPTS : ALH_RATING) + WD_FRAMERECT_TOP;
+ size->height = WD_FRAMERECT_TOP + ((this->GetWidget<NWidgetCore>(SVW_ACCEPTS)->widget_data == STR_STATION_VIEW_RATINGS_BUTTON) ? ALH_ACCEPTS : ALH_RATING) * FONT_HEIGHT_NORMAL + WD_FRAMERECT_BOTTOM;
break;
}
}