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 /vehicle_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 'vehicle_gui.c')
-rw-r--r-- | vehicle_gui.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index 2eaad2ee0..0416e7121 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -426,7 +426,7 @@ static const Widget _vehicle_refit_widgets[] = { }; static const WindowDesc _vehicle_refit_desc = { - -1,-1, 240, 174, + WDP_AUTO, WDP_AUTO, 240, 174, WC_VEHICLE_REFIT,WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _vehicle_refit_widgets, @@ -1278,7 +1278,7 @@ static const Widget _replace_ship_aircraft_vehicle_widgets[] = { }; static const WindowDesc _replace_rail_vehicle_desc = { - -1, -1, 456, 252, + WDP_AUTO, WDP_AUTO, 456, 252, WC_REPLACE_VEHICLE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _replace_rail_vehicle_widgets, @@ -1286,7 +1286,7 @@ static const WindowDesc _replace_rail_vehicle_desc = { }; static const WindowDesc _replace_road_vehicle_desc = { - -1, -1, 456, 230, + WDP_AUTO, WDP_AUTO, 456, 230, WC_REPLACE_VEHICLE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _replace_road_vehicle_widgets, @@ -1294,7 +1294,7 @@ static const WindowDesc _replace_road_vehicle_desc = { }; static const WindowDesc _replace_ship_aircraft_vehicle_desc = { - -1, -1, 456, 214, + WDP_AUTO, WDP_AUTO, 456, 214, WC_REPLACE_VEHICLE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _replace_ship_aircraft_vehicle_widgets, @@ -1822,15 +1822,15 @@ void PlayerVehWndProc(Window *w, WindowEvent *e) } static const WindowDesc _player_vehicle_list_train_desc = { - -1, -1, 325, 220, - WC_TRAINS_LIST,0, - WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, - _vehicle_list_widgets, - PlayerVehWndProc + WDP_AUTO, WDP_AUTO, 325, 220, + WC_TRAINS_LIST, 0, + WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, + _vehicle_list_widgets, + PlayerVehWndProc }; static const WindowDesc _player_vehicle_list_road_veh_desc = { - -1, -1, 260, 220, + WDP_AUTO, WDP_AUTO, 260, 220, WC_ROADVEH_LIST,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _vehicle_list_widgets, @@ -1838,7 +1838,7 @@ static const WindowDesc _player_vehicle_list_road_veh_desc = { }; static const WindowDesc _player_vehicle_list_ship_desc = { - -1, -1, 260, 182, + WDP_AUTO, WDP_AUTO, 260, 182, WC_SHIPS_LIST,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _vehicle_list_widgets, @@ -1846,7 +1846,7 @@ static const WindowDesc _player_vehicle_list_ship_desc = { }; static const WindowDesc _player_vehicle_list_aircraft_desc = { - -1, -1, 260, 182, + WDP_AUTO, WDP_AUTO, 260, 182, WC_AIRCRAFT_LIST,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _vehicle_list_widgets, |