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 /roadveh_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 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index 9516c989f..f787a82bf 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -205,7 +205,7 @@ static const Widget _roadveh_details_widgets[] = { }; static const WindowDesc _roadveh_details_desc = { - -1,-1, 380, 101, + WDP_AUTO, WDP_AUTO, 380, 101, WC_VEHICLE_DETAILS,WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _roadveh_details_widgets, @@ -378,7 +378,7 @@ static const Widget _roadveh_view_widgets[] = { }; static const WindowDesc _roadveh_view_desc = { - -1,-1, 250, 116, + WDP_AUTO, WDP_AUTO, 250, 116, WC_VEHICLE_VIEW,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _roadveh_view_widgets, @@ -520,7 +520,7 @@ static const Widget _new_road_veh_widgets[] = { }; static const WindowDesc _new_road_veh_desc = { - -1, -1, 248, 230, + WDP_AUTO, WDP_AUTO, 248, 230, WC_BUILD_VEHICLE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _new_road_veh_widgets, |