diff options
author | Darkvater <Darkvater@openttd.org> | 2006-11-10 19:24:14 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-11-10 19:24:14 +0000 |
commit | e786cd5c6b828293c6860b838a9180b72a22cab7 (patch) | |
tree | c1fc1f90d309d87f532278a729d8ba806cc319fd /rail_gui.c | |
parent | 70eba6d52586db62de3566c7e2c704db50a59bc9 (diff) | |
download | openttd-e786cd5c6b828293c6860b838a9180b72a22cab7.tar.xz |
(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/rail_gui.c b/rail_gui.c index 98a8e20f8..548ad88b4 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -544,8 +544,8 @@ static const Widget _build_rail_widgets[] = { }; static const WindowDesc _build_rail_desc = { - 640-372, 22, 372, 36, - WC_BUILD_TOOLBAR,0, + 0, 22, 372, 36, + WC_BUILD_TOOLBAR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _build_rail_widgets, BuildRailToolbWndProc @@ -953,16 +953,16 @@ static const Widget _newstation_builder_widgets[] = { }; static const WindowDesc _station_builder_desc = { - -1, -1, 148, 200, - WC_BUILD_STATION,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 148, 200, + WC_BUILD_STATION, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _station_builder_widgets, StationBuildWndProc }; static const WindowDesc _newstation_builder_desc = { - -1, -1, 148, 290, - WC_BUILD_STATION,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 148, 290, + WC_BUILD_STATION, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _newstation_builder_widgets, StationBuildWndProc @@ -1040,8 +1040,8 @@ static const Widget _build_depot_widgets[] = { }; static const WindowDesc _build_depot_desc = { - -1,-1, 140, 122, - WC_BUILD_DEPOT,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 140, 122, + WC_BUILD_DEPOT, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_depot_widgets, BuildTrainDepotWndProc @@ -1126,8 +1126,8 @@ static const Widget _build_waypoint_widgets[] = { }; static const WindowDesc _build_waypoint_desc = { - -1,-1, 344, 92, - WC_BUILD_DEPOT,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 344, 92, + WC_BUILD_DEPOT, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_waypoint_widgets, BuildWaypointWndProc |