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 | d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b (patch) | |
tree | c1fc1f90d309d87f532278a729d8ba806cc319fd /rail_gui.c | |
parent | 0d9f80839f80edf41bd8ed75806b7901a553785a (diff) | |
download | openttd-d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b.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 |