summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-15 15:12:06 +0000
committerrubidium <rubidium@openttd.org>2009-03-15 15:12:06 +0000
commitf9def73be628b8298eb9164ebdf5d0d77f30b106 (patch)
tree66a1daaed45d405317364932c5184ead15c023d4 /src/station_gui.cpp
parente9ae5ae307d3f4064a46175f4f66ca6a372f5578 (diff)
downloadopenttd-f9def73be628b8298eb9164ebdf5d0d77f30b106.tar.xz
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index d19552516..550914f5f 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -612,12 +612,12 @@ static const Widget _company_stations_widgets[] = {
{ WIDGETS_END},
};
-static const WindowDesc _company_stations_desc = {
+static const WindowDesc _company_stations_desc(
WDP_AUTO, WDP_AUTO, 358, 162, 358, 162,
WC_STATION_LIST, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
- _company_stations_widgets,
-};
+ _company_stations_widgets
+);
/**
* Opens window with list of company's stations
@@ -983,12 +983,12 @@ struct StationViewWindow : public Window {
};
-static const WindowDesc _station_view_desc = {
+static const WindowDesc _station_view_desc(
WDP_AUTO, WDP_AUTO, 249, 110, 249, 110,
WC_STATION_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
- _station_view_widgets,
-};
+ _station_view_widgets
+);
/**
* Opens StationViewWindow for given station
@@ -1199,12 +1199,12 @@ struct SelectStationWindow : Window {
}
};
-static const WindowDesc _select_station_desc = {
+static const WindowDesc _select_station_desc(
WDP_AUTO, WDP_AUTO, 200, 92, 200, 182,
WC_SELECT_STATION, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE | WDF_CONSTRUCTION,
- _select_station_widgets,
-};
+ _select_station_widgets
+);
/**