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 /road_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 'road_gui.c')
-rw-r--r-- | road_gui.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/road_gui.c b/road_gui.c index e8dcda448..9f6e1fb24 100644 --- a/road_gui.c +++ b/road_gui.c @@ -309,8 +309,8 @@ static const Widget _build_road_widgets[] = { }; static const WindowDesc _build_road_desc = { - 640-240, 22, 240, 36, - WC_BUILD_TOOLBAR,0, + 0, 22, 240, 36, + WC_BUILD_TOOLBAR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _build_road_widgets, BuildRoadToolbWndProc @@ -344,7 +344,7 @@ static const Widget _build_road_scen_widgets[] = { }; static const WindowDesc _build_road_scen_desc = { - -1, -1, 174, 36, + WDP_AUTO, WDP_AUTO, 174, 36, WC_SCEN_BUILD_ROAD,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _build_road_scen_widgets, @@ -404,8 +404,8 @@ static const Widget _build_road_depot_widgets[] = { }; static const WindowDesc _build_road_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_road_depot_widgets, BuildRoadDepotWndProc @@ -500,8 +500,8 @@ static const Widget _bus_station_picker_widgets[] = { }; static const WindowDesc _bus_station_picker_desc = { - -1,-1, 140, 177, - WC_BUS_STATION,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 140, 177, + WC_BUS_STATION, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _bus_station_picker_widgets, RoadStationPickerWndProc @@ -527,8 +527,8 @@ static const Widget _truck_station_picker_widgets[] = { }; static const WindowDesc _truck_station_picker_desc = { - -1,-1, 140, 177, - WC_TRUCK_STATION,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 140, 177, + WC_TRUCK_STATION, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _truck_station_picker_widgets, RoadStationPickerWndProc |