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 /depot_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 'depot_gui.c')
-rw-r--r-- | depot_gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/depot_gui.c b/depot_gui.c index 946f4cecf..3117922a9 100644 --- a/depot_gui.c +++ b/depot_gui.c @@ -110,7 +110,7 @@ static const Widget _depot_widgets[] = { static void DepotWndProc(Window *w, WindowEvent *e); static const WindowDesc _train_depot_desc = { - -1, -1, 361, 122, + WDP_AUTO, WDP_AUTO, 361, 122, WC_VEHICLE_DEPOT,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _depot_widgets, @@ -118,7 +118,7 @@ static const WindowDesc _train_depot_desc = { }; static const WindowDesc _road_depot_desc = { - -1, -1, 315, 96, + WDP_AUTO, WDP_AUTO, 315, 96, WC_VEHICLE_DEPOT,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _depot_widgets, @@ -126,7 +126,7 @@ static const WindowDesc _road_depot_desc = { }; static const WindowDesc _ship_depot_desc = { - -1, -1, 305, 98, + WDP_AUTO, WDP_AUTO, 305, 98, WC_VEHICLE_DEPOT,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _depot_widgets, @@ -134,7 +134,7 @@ static const WindowDesc _ship_depot_desc = { }; static const WindowDesc _aircraft_depot_desc = { - -1, -1, 331, 98, + WDP_AUTO, WDP_AUTO, 331, 98, WC_VEHICLE_DEPOT,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _depot_widgets, |