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 /train_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 'train_gui.c')
-rw-r--r-- | train_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/train_gui.c b/train_gui.c index 5b06fee2d..323dd7bed 100644 --- a/train_gui.c +++ b/train_gui.c @@ -649,7 +649,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e) } static const WindowDesc _new_rail_vehicle_desc = { - -1, -1, 228, 264, + WDP_AUTO, WDP_AUTO, 228, 264, WC_BUILD_VEHICLE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _new_rail_vehicle_widgets, @@ -923,7 +923,7 @@ static void TrainViewWndProc(Window *w, WindowEvent *e) } static const WindowDesc _train_view_desc = { - -1,-1, 250, 134, + WDP_AUTO, WDP_AUTO, 250, 134, WC_VEHICLE_VIEW,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _train_view_widgets, @@ -1200,7 +1200,7 @@ static const Widget _train_details_widgets[] = { static const WindowDesc _train_details_desc = { - -1,-1, 370, 164, + WDP_AUTO, WDP_AUTO, 370, 164, WC_VEHICLE_DETAILS,WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _train_details_widgets, |