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 | |
parent | 0d9f80839f80edf41bd8ed75806b7901a553785a (diff) | |
download | openttd-d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b.tar.xz |
(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
-rw-r--r-- | aircraft_gui.c | 4 | ||||
-rw-r--r-- | airport_gui.c | 8 | ||||
-rw-r--r-- | bridge_gui.c | 8 | ||||
-rw-r--r-- | build_vehicle_gui.c | 2 | ||||
-rw-r--r-- | depot_gui.c | 8 | ||||
-rw-r--r-- | dock_gui.c | 12 | ||||
-rw-r--r-- | graph_gui.c | 20 | ||||
-rw-r--r-- | industry_gui.c | 20 | ||||
-rw-r--r-- | main_gui.c | 12 | ||||
-rw-r--r-- | misc_gui.c | 4 | ||||
-rw-r--r-- | network_gui.c | 2 | ||||
-rw-r--r-- | order_gui.c | 6 | ||||
-rw-r--r-- | player_gui.c | 18 | ||||
-rw-r--r-- | rail_gui.c | 20 | ||||
-rw-r--r-- | road_gui.c | 18 | ||||
-rw-r--r-- | roadveh_gui.c | 6 | ||||
-rw-r--r-- | ship_gui.c | 6 | ||||
-rw-r--r-- | smallmap_gui.c | 4 | ||||
-rw-r--r-- | station_gui.c | 4 | ||||
-rw-r--r-- | subsidy_gui.c | 2 | ||||
-rw-r--r-- | terraform_gui.c | 2 | ||||
-rw-r--r-- | town_gui.c | 8 | ||||
-rw-r--r-- | train_gui.c | 6 | ||||
-rw-r--r-- | vehicle_gui.c | 24 |
24 files changed, 112 insertions, 112 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index c4dd72244..7d5d1ae81 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -167,7 +167,7 @@ static const Widget _aircraft_details_widgets[] = { }; static const WindowDesc _aircraft_details_desc = { - -1, -1, 390, 114, + WDP_AUTO, WDP_AUTO, 390, 114, WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _aircraft_details_widgets, @@ -331,7 +331,7 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e) static const WindowDesc _aircraft_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, _aircraft_view_widgets, diff --git a/airport_gui.c b/airport_gui.c index 0104cc645..73bd77868 100644 --- a/airport_gui.c +++ b/airport_gui.c @@ -124,8 +124,8 @@ static const Widget _air_toolbar_widgets[] = { static const WindowDesc _air_toolbar_desc = { - 640-86, 22, 86, 36, - WC_BUILD_TOOLBAR,0, + 0, 22, 86, 36, + WC_BUILD_TOOLBAR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _air_toolbar_widgets, BuildAirToolbWndProc @@ -262,8 +262,8 @@ static const Widget _build_airport_picker_widgets[] = { }; static const WindowDesc _build_airport_desc = { - -1, -1, 148, 240, - WC_BUILD_STATION,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 148, 240, + WC_BUILD_STATION, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_airport_picker_widgets, BuildAirportPickerWndProc diff --git a/bridge_gui.c b/bridge_gui.c index c3a808820..f426da18e 100644 --- a/bridge_gui.c +++ b/bridge_gui.c @@ -87,8 +87,8 @@ static const Widget _build_bridge_widgets[] = { }; static const WindowDesc _build_bridge_desc = { - -1, -1, 200, 102, - WC_BUILD_BRIDGE,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 200, 102, + WC_BUILD_BRIDGE, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_bridge_widgets, BuildBridgeWndProc @@ -104,8 +104,8 @@ static const Widget _build_road_bridge_widgets[] = { }; static const WindowDesc _build_road_bridge_desc = { - -1, -1, 200, 102, - WC_BUILD_BRIDGE,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 200, 102, + WC_BUILD_BRIDGE, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_road_bridge_widgets, BuildBridgeWndProc diff --git a/build_vehicle_gui.c b/build_vehicle_gui.c index 11caed6e3..cd8817920 100644 --- a/build_vehicle_gui.c +++ b/build_vehicle_gui.c @@ -540,7 +540,7 @@ static void NewAircraftWndProc(Window *w, WindowEvent *e) } static const WindowDesc _build_vehicle_desc = { - -1, -1, 240, 238, + WDP_AUTO, WDP_AUTO, 240, 238, WC_BUILD_VEHICLE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _build_vehicle_widgets, 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, diff --git a/dock_gui.c b/dock_gui.c index a58fe29fa..97a1a9d4d 100644 --- a/dock_gui.c +++ b/dock_gui.c @@ -205,8 +205,8 @@ static const Widget _build_docks_toolb_widgets[] = { }; static const WindowDesc _build_docks_toolbar_desc = { - 640-158, 22, 158, 36, - WC_BUILD_TOOLBAR,0, + 0, 22, 158, 36, + WC_BUILD_TOOLBAR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _build_docks_toolb_widgets, BuildDocksToolbWndProc @@ -279,8 +279,8 @@ static const Widget _build_dock_station_widgets[] = { }; static const WindowDesc _build_dock_station_desc = { - -1, -1, 148, 75, - WC_BUILD_STATION,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 148, 75, + WC_BUILD_STATION, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_dock_station_widgets, BuildDockStationWndProc @@ -348,8 +348,8 @@ static const Widget _build_docks_depot_widgets[] = { }; static const WindowDesc _build_docks_depot_desc = { - -1, -1, 204, 86, - WC_BUILD_DEPOT,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 204, 86, + WC_BUILD_DEPOT, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_docks_depot_widgets, BuildDocksDepotWndProc diff --git a/graph_gui.c b/graph_gui.c index aab8959cc..fde5f50bc 100644 --- a/graph_gui.c +++ b/graph_gui.c @@ -283,7 +283,7 @@ static const Widget _graph_legend_widgets[] = { }; static const WindowDesc _graph_legend_desc = { - -1, -1, 250, 114, + WDP_AUTO, WDP_AUTO, 250, 114, WC_GRAPH_LEGEND,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _graph_legend_widgets, @@ -384,7 +384,7 @@ static const Widget _operating_profit_widgets[] = { }; static const WindowDesc _operating_profit_desc = { - -1, -1, 576, 174, + WDP_AUTO, WDP_AUTO, 576, 174, WC_OPERATING_PROFIT,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _operating_profit_widgets, @@ -459,7 +459,7 @@ static const Widget _income_graph_widgets[] = { }; static const WindowDesc _income_graph_desc = { - -1, -1, 576, 142, + WDP_AUTO, WDP_AUTO, 576, 142, WC_INCOME_GRAPH,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _income_graph_widgets, @@ -532,7 +532,7 @@ static const Widget _delivered_cargo_graph_widgets[] = { }; static const WindowDesc _delivered_cargo_graph_desc = { - -1, -1, 576, 142, + WDP_AUTO, WDP_AUTO, 576, 142, WC_DELIVERED_CARGO,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _delivered_cargo_graph_widgets, @@ -608,7 +608,7 @@ static const Widget _performance_history_widgets[] = { }; static const WindowDesc _performance_history_desc = { - -1, -1, 576, 238, + WDP_AUTO, WDP_AUTO, 576, 238, WC_PERFORMANCE_HISTORY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _performance_history_widgets, @@ -681,7 +681,7 @@ static const Widget _company_value_graph_widgets[] = { }; static const WindowDesc _company_value_graph_desc = { - -1, -1, 576, 238, + WDP_AUTO, WDP_AUTO, 576, 238, WC_COMPANY_VALUE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _company_value_graph_widgets, @@ -796,7 +796,7 @@ static const Widget _cargo_payment_rates_widgets[] = { }; static const WindowDesc _cargo_payment_rates_desc = { - -1, -1, 568, 142, + WDP_AUTO, WDP_AUTO, 568, 142, WC_PAYMENT_RATES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _cargo_payment_rates_widgets, @@ -888,7 +888,7 @@ static const Widget _company_league_widgets[] = { }; static const WindowDesc _company_league_desc = { - -1, -1, 400, 97, + WDP_AUTO, WDP_AUTO, 400, 97, WC_COMPANY_LEAGUE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _company_league_widgets, @@ -1110,7 +1110,7 @@ static const Widget _performance_rating_detail_widgets[] = { }; static const WindowDesc _performance_rating_detail_desc = { - -1, -1, 299, 228, + WDP_AUTO, WDP_AUTO, 299, 228, WC_PERFORMANCE_DETAIL,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _performance_rating_detail_widgets, @@ -1239,7 +1239,7 @@ static const Widget _sign_list_widget[] = { }; static const WindowDesc _sign_list_desc = { - -1, -1, 358, 138, + WDP_AUTO, WDP_AUTO, 358, 138, WC_SIGN_LIST,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE, _sign_list_widget, diff --git a/industry_gui.c b/industry_gui.c index 9a650e6ae..445422a4a 100644 --- a/industry_gui.c +++ b/industry_gui.c @@ -188,7 +188,7 @@ static const Widget _build_industry_land3_widgets_extra[] = { static const WindowDesc _build_industry_land0_desc = { - -1, -1, 170, 116, + WDP_AUTO, WDP_AUTO, 170, 116, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land0_widgets, @@ -196,7 +196,7 @@ static const WindowDesc _build_industry_land0_desc = { }; static const WindowDesc _build_industry_land1_desc = { - -1, -1, 170, 116, + WDP_AUTO, WDP_AUTO, 170, 116, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land1_widgets, @@ -204,7 +204,7 @@ static const WindowDesc _build_industry_land1_desc = { }; static const WindowDesc _build_industry_land2_desc = { - -1, -1, 170, 116, + WDP_AUTO, WDP_AUTO, 170, 116, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land2_widgets, @@ -212,7 +212,7 @@ static const WindowDesc _build_industry_land2_desc = { }; static const WindowDesc _build_industry_land3_desc = { - -1, -1, 170, 116, + WDP_AUTO, WDP_AUTO, 170, 116, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land3_widgets, @@ -220,7 +220,7 @@ static const WindowDesc _build_industry_land3_desc = { }; static const WindowDesc _build_industry_land0_desc_extra = { - -1, -1, 170, 188, + WDP_AUTO, WDP_AUTO, 170, 188, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land0_widgets_extra, @@ -228,7 +228,7 @@ static const WindowDesc _build_industry_land0_desc_extra = { }; static const WindowDesc _build_industry_land1_desc_extra = { - -1, -1, 170, 175, + WDP_AUTO, WDP_AUTO, 170, 175, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land1_widgets_extra, @@ -236,7 +236,7 @@ static const WindowDesc _build_industry_land1_desc_extra = { }; static const WindowDesc _build_industry_land2_desc_extra = { - -1, -1, 170, 201, + WDP_AUTO, WDP_AUTO, 170, 201, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land2_widgets_extra, @@ -244,7 +244,7 @@ static const WindowDesc _build_industry_land2_desc_extra = { }; static const WindowDesc _build_industry_land3_desc_extra = { - -1, -1, 170, 188, + WDP_AUTO, WDP_AUTO, 170, 188, WC_BUILD_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_industry_land3_widgets_extra, @@ -434,7 +434,7 @@ static const Widget _industry_view_widgets[] = { }; static const WindowDesc _industry_view_desc = { - -1, -1, 260, 160, + WDP_AUTO, WDP_AUTO, 260, 160, WC_INDUSTRY_VIEW,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _industry_view_widgets, @@ -676,7 +676,7 @@ static void IndustryDirectoryWndProc(Window *w, WindowEvent *e) /* Industry List */ static const WindowDesc _industry_directory_desc = { - -1, -1, 508, 190, + WDP_AUTO, WDP_AUTO, 508, 190, WC_INDUSTRY_DIRECTORY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _industry_directory_widgets, diff --git a/main_gui.c b/main_gui.c index 3815c37a6..ebcd4d03b 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1331,7 +1331,7 @@ static void ScenEditLandGenWndProc(Window *w, WindowEvent *e) } static const WindowDesc _scen_edit_land_gen_desc = { - -1,-1, 182, 96, + WDP_AUTO, WDP_AUTO, 182, 96, WC_SCEN_LAND_GEN,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _scen_edit_land_gen_widgets, @@ -1447,7 +1447,7 @@ static void ScenEditTownGenWndProc(Window *w, WindowEvent *e) } static const WindowDesc _scen_edit_town_gen_desc = { - -1,-1, 160, 82, + WDP_AUTO, WDP_AUTO, 160, 82, WC_SCEN_TOWN_GEN,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _scen_edit_town_gen_widgets, @@ -1659,7 +1659,7 @@ static void ScenEditIndustryWndProc(Window *w, WindowEvent *e) } static const WindowDesc _scenedit_industry_normal_desc = { - -1,-1, 170, 225, + WDP_AUTO, WDP_AUTO, 170, 225, WC_SCEN_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _scenedit_industry_normal_widgets, @@ -1667,7 +1667,7 @@ static const WindowDesc _scenedit_industry_normal_desc = { }; static const WindowDesc _scenedit_industry_hilly_desc = { - -1,-1, 170, 225, + WDP_AUTO, WDP_AUTO, 170, 225, WC_SCEN_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _scenedit_industry_hilly_widgets, @@ -1675,7 +1675,7 @@ static const WindowDesc _scenedit_industry_hilly_desc = { }; static const WindowDesc _scenedit_industry_desert_desc = { - -1,-1, 170, 225, + WDP_AUTO, WDP_AUTO, 170, 225, WC_SCEN_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _scenedit_industry_desert_widgets, @@ -1683,7 +1683,7 @@ static const WindowDesc _scenedit_industry_desert_desc = { }; static const WindowDesc _scenedit_industry_candy_desc = { - -1,-1, 170, 225, + WDP_AUTO, WDP_AUTO, 170, 225, WC_SCEN_INDUSTRY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _scenedit_industry_candy_widgets, diff --git a/misc_gui.c b/misc_gui.c index 1347eede7..030106d66 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -133,7 +133,7 @@ static const Widget _land_info_widgets[] = { }; static const WindowDesc _land_info_desc = { - -1, -1, 280, 93, + WDP_AUTO, WDP_AUTO, 280, 93, WC_LAND_INFO,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _land_info_widgets, @@ -440,7 +440,7 @@ static const Widget _build_trees_scen_widgets[] = { }; static const WindowDesc _build_trees_scen_desc = { - -1, -1, 143, 184, + WDP_AUTO, WDP_AUTO, 143, 184, WC_BUILD_TREES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_trees_scen_widgets, diff --git a/network_gui.c b/network_gui.c index f3615f01c..2e60fcac5 100644 --- a/network_gui.c +++ b/network_gui.c @@ -1028,7 +1028,7 @@ static const Widget _client_list_popup_widgets[] = { }; static WindowDesc _client_list_desc = { - -1, -1, 250, 1, + WDP_AUTO, WDP_AUTO, 250, 1, WC_CLIENT_LIST,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _client_list_widgets, diff --git a/order_gui.c b/order_gui.c index d9dbc6203..cc2bbe966 100644 --- a/order_gui.c +++ b/order_gui.c @@ -583,7 +583,7 @@ static const Widget _orders_train_widgets[] = { }; static const WindowDesc _orders_train_desc = { - -1,-1, 399, 88, + WDP_AUTO, WDP_AUTO, 399, 88, WC_VEHICLE_ORDERS,WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE, _orders_train_widgets, @@ -610,7 +610,7 @@ static const Widget _orders_widgets[] = { }; static const WindowDesc _orders_desc = { - -1,-1, 410, 88, + WDP_AUTO, WDP_AUTO, 410, 88, WC_VEHICLE_ORDERS,WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE, _orders_widgets, @@ -634,7 +634,7 @@ static const Widget _other_orders_widgets[] = { }; static const WindowDesc _other_orders_desc = { - -1,-1, 332, 88, + WDP_AUTO, WDP_AUTO, 332, 88, WC_VEHICLE_ORDERS,WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _other_orders_widgets, diff --git a/player_gui.c b/player_gui.c index 798c805bb..a1366c12a 100644 --- a/player_gui.c +++ b/player_gui.c @@ -188,7 +188,7 @@ static void PlayerFinancesWndProc(Window *w, WindowEvent *e) } static const WindowDesc _player_finances_desc = { - -1,-1, 407, 216, + WDP_AUTO, WDP_AUTO, 407, 216, WC_FINANCES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _player_finances_widgets, @@ -196,7 +196,7 @@ static const WindowDesc _player_finances_desc = { }; static const WindowDesc _player_finances_small_desc = { - -1,-1, 280, 60, + WDP_AUTO, WDP_AUTO, 280, 60, WC_FINANCES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _player_finances_small_widgets, @@ -204,7 +204,7 @@ static const WindowDesc _player_finances_small_desc = { }; static const WindowDesc _other_player_finances_desc = { - -1,-1, 407, 204, + WDP_AUTO, WDP_AUTO, 407, 204, WC_FINANCES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _other_player_finances_widgets, @@ -212,7 +212,7 @@ static const WindowDesc _other_player_finances_desc = { }; static const WindowDesc _other_player_finances_small_desc = { - -1,-1, 280, 48, + WDP_AUTO, WDP_AUTO, 280, 48, WC_FINANCES,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _other_player_finances_small_widgets, @@ -470,7 +470,7 @@ static const Widget _select_player_livery_2cc_widgets[] = { }; static const WindowDesc _select_player_livery_2cc_desc = { - -1,-1, 400, 49 + 1 * 14, + WDP_AUTO, WDP_AUTO, 400, 49 + 1 * 14, WC_PLAYER_COLOR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _select_player_livery_2cc_widgets, @@ -497,7 +497,7 @@ static const Widget _select_player_livery_widgets[] = { }; static const WindowDesc _select_player_livery_desc = { - -1, -1, 275, 49 + 1 * 14, + WDP_AUTO, WDP_AUTO, 275, 49 + 1 * 14, WC_PLAYER_COLOR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _select_player_livery_widgets, @@ -551,7 +551,7 @@ static const Widget _select_player_face_widgets[] = { }; static const WindowDesc _select_player_face_desc = { - -1,-1, 190, 149, + WDP_AUTO, WDP_AUTO, 190, 149, WC_PLAYER_FACE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _select_player_face_widgets, @@ -867,7 +867,7 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e) static const WindowDesc _player_company_desc = { - -1, -1, 360, 170, + WDP_AUTO, WDP_AUTO, 360, 170, WC_COMPANY, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _player_company_widgets, @@ -928,7 +928,7 @@ static const Widget _buy_company_widgets[] = { }; static const WindowDesc _buy_company_desc = { - 153,171, 334, 137, + 153, 171, 334, 137, WC_BUY_COMPANY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _buy_company_widgets, diff --git a/rail_gui.c b/rail_gui.c index 98a8e20f8..548ad88b4 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -544,8 +544,8 @@ static const Widget _build_rail_widgets[] = { }; static const WindowDesc _build_rail_desc = { - 640-372, 22, 372, 36, - WC_BUILD_TOOLBAR,0, + 0, 22, 372, 36, + WC_BUILD_TOOLBAR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _build_rail_widgets, BuildRailToolbWndProc @@ -953,16 +953,16 @@ static const Widget _newstation_builder_widgets[] = { }; static const WindowDesc _station_builder_desc = { - -1, -1, 148, 200, - WC_BUILD_STATION,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 148, 200, + WC_BUILD_STATION, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _station_builder_widgets, StationBuildWndProc }; static const WindowDesc _newstation_builder_desc = { - -1, -1, 148, 290, - WC_BUILD_STATION,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 148, 290, + WC_BUILD_STATION, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _newstation_builder_widgets, StationBuildWndProc @@ -1040,8 +1040,8 @@ static const Widget _build_depot_widgets[] = { }; static const WindowDesc _build_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_depot_widgets, BuildTrainDepotWndProc @@ -1126,8 +1126,8 @@ static const Widget _build_waypoint_widgets[] = { }; static const WindowDesc _build_waypoint_desc = { - -1,-1, 344, 92, - WC_BUILD_DEPOT,WC_BUILD_TOOLBAR, + WDP_AUTO, WDP_AUTO, 344, 92, + WC_BUILD_DEPOT, WC_BUILD_TOOLBAR, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, _build_waypoint_widgets, BuildWaypointWndProc 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 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, diff --git a/ship_gui.c b/ship_gui.c index bf742c5e8..a65270be7 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -203,7 +203,7 @@ static const Widget _ship_details_widgets[] = { }; static const WindowDesc _ship_details_desc = { - -1,-1, 405, 101, + WDP_AUTO, WDP_AUTO, 405, 101, WC_VEHICLE_DETAILS,WC_VEHICLE_VIEW, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _ship_details_widgets, @@ -345,7 +345,7 @@ static const Widget _new_ship_widgets[] = { }; static const WindowDesc _new_ship_desc = { - -1, -1, 255, 214, + WDP_AUTO, WDP_AUTO, 255, 214, WC_BUILD_VEHICLE,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _new_ship_widgets, @@ -515,7 +515,7 @@ static const Widget _ship_view_widgets[] = { }; static const WindowDesc _ship_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, _ship_view_widgets, diff --git a/smallmap_gui.c b/smallmap_gui.c index fcb80a67b..e955e5d0f 100644 --- a/smallmap_gui.c +++ b/smallmap_gui.c @@ -968,7 +968,7 @@ static void SmallMapWindowProc(Window *w, WindowEvent *e) } static const WindowDesc _smallmap_desc = { - -1,-1, 446, 314, + WDP_AUTO, WDP_AUTO, 446, 314, WC_SMALLMAP,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE, _smallmap_widgets, @@ -1081,7 +1081,7 @@ static void ExtraViewPortWndProc(Window *w, WindowEvent *e) } static const WindowDesc _extra_view_port_desc = { - -1,-1, 300, 268, + WDP_AUTO, WDP_AUTO, 300, 268, WC_EXTRA_VIEW_PORT,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _extra_view_port_widgets, diff --git a/station_gui.c b/station_gui.c index 0ed5367b1..fbc8882b5 100644 --- a/station_gui.c +++ b/station_gui.c @@ -494,7 +494,7 @@ static const Widget _player_stations_widgets[] = { }; static const WindowDesc _player_stations_desc = { - -1, -1, 358, 162, + WDP_AUTO, WDP_AUTO, 358, 162, WC_STATION_LIST,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _player_stations_widgets, @@ -763,7 +763,7 @@ static void StationViewWndProc(Window *w, WindowEvent *e) static const WindowDesc _station_view_desc = { - -1, -1, 249, 110, + WDP_AUTO, WDP_AUTO, 249, 110, WC_STATION_VIEW,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _station_view_widgets, diff --git a/subsidy_gui.c b/subsidy_gui.c index 80bc2843f..a1b40ad90 100644 --- a/subsidy_gui.c +++ b/subsidy_gui.c @@ -162,7 +162,7 @@ static const Widget _subsidies_list_widgets[] = { }; static const WindowDesc _subsidies_list_desc = { - -1, -1, 630, 127, + WDP_AUTO, WDP_AUTO, 630, 127, WC_SUBSIDIES_LIST,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _subsidies_list_widgets, diff --git a/terraform_gui.c b/terraform_gui.c index 35549421f..0d6c9ccd6 100644 --- a/terraform_gui.c +++ b/terraform_gui.c @@ -266,7 +266,7 @@ static const Widget _terraform_widgets[] = { static const WindowDesc _terraform_desc = { 640-157, 22+36, 158, 36, - WC_SCEN_LAND_GEN,0, + WC_SCEN_LAND_GEN, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _terraform_widgets, TerraformToolbWndProc diff --git a/town_gui.c b/town_gui.c index af0a92274..03f87edad 100644 --- a/town_gui.c +++ b/town_gui.c @@ -210,7 +210,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e) } static const WindowDesc _town_authority_desc = { - -1, -1, 317, 222, + WDP_AUTO, WDP_AUTO, 317, 222, WC_TOWN_AUTHORITY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _town_authority_widgets, @@ -304,7 +304,7 @@ static const Widget _town_view_widgets[] = { }; static const WindowDesc _town_view_desc = { - -1, -1, 260, 150, + WDP_AUTO, WDP_AUTO, 260, 150, WC_TOWN_VIEW,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _town_view_widgets, @@ -327,7 +327,7 @@ static const Widget _town_view_scen_widgets[] = { }; static const WindowDesc _town_view_scen_desc = { - -1, -1, 260, 150, + WDP_AUTO, WDP_AUTO, 260, 150, WC_TOWN_VIEW,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _town_view_scen_widgets, @@ -505,7 +505,7 @@ static void TownDirectoryWndProc(Window *w, WindowEvent *e) } static const WindowDesc _town_directory_desc = { - -1, -1, 208, 202, + WDP_AUTO, WDP_AUTO, 208, 202, WC_TOWN_DIRECTORY,0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, _town_directory_widgets, 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, 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, |