summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-28 15:01:49 +0000
committerrubidium <rubidium@openttd.org>2009-11-28 15:01:49 +0000
commit1f0da3710f955c7fd4a747ac814d449847e73884 (patch)
tree9f2f599538f3adfc61e80e472ed9f04332aeac65 /src
parent9bb4ad4ba827127b9cf92f198efd6442f053a3aa (diff)
downloadopenttd-1f0da3710f955c7fd4a747ac814d449847e73884.tar.xz
(svn r18324) -Codechange: there's no need for a default size when the window isn't resizable
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_gui.cpp2
-rw-r--r--src/airport_gui.cpp4
-rw-r--r--src/company_gui.cpp6
-rw-r--r--src/dock_gui.cpp8
-rw-r--r--src/engine_gui.cpp2
-rw-r--r--src/genworld_gui.cpp8
-rw-r--r--src/graph_gui.cpp18
-rw-r--r--src/highscore_gui.cpp4
-rw-r--r--src/intro_gui.cpp2
-rw-r--r--src/misc_gui.cpp8
-rw-r--r--src/music_gui.cpp4
-rw-r--r--src/network/network_content_gui.cpp2
-rw-r--r--src/network/network_gui.cpp10
-rw-r--r--src/news_gui.cpp10
-rw-r--r--src/osk_gui.cpp2
-rw-r--r--src/rail_gui.cpp12
-rw-r--r--src/road_gui.cpp10
-rw-r--r--src/settings_gui.cpp6
-rw-r--r--src/signs_gui.cpp2
-rw-r--r--src/terraform_gui.cpp4
-rw-r--r--src/transparency_gui.cpp2
-rw-r--r--src/tree_gui.cpp2
22 files changed, 64 insertions, 64 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 98118e6e2..179674f5c 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -493,7 +493,7 @@ static const NWidgetPart _nested_ai_config_widgets[] = {
/* Window definition for the configure AI window. */
static const WindowDesc _ai_config_desc(
- WDP_CENTER, 300, 172,
+ WDP_CENTER, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_ai_config_widgets, lengthof(_nested_ai_config_widgets)
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 6e5cca58a..bb0fb6ef3 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -147,7 +147,7 @@ static const NWidgetPart _nested_air_toolbar_widgets[] = {
};
static const WindowDesc _air_toolbar_desc(
- WDP_ALIGN_TOOLBAR, 64, 36,
+ WDP_ALIGN_TOOLBAR, 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_air_toolbar_widgets, lengthof(_nested_air_toolbar_widgets)
@@ -368,7 +368,7 @@ static const NWidgetPart _nested_build_airport_widgets[] = {
};
static const WindowDesc _build_airport_desc(
- WDP_AUTO, 148, 245,
+ WDP_AUTO, 0, 0,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_build_airport_widgets, lengthof(_nested_build_airport_widgets)
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index c66e678cb..623d98b6c 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -1522,7 +1522,7 @@ const StringID SelectCompanyManagerFaceWindow::PART_TEXTS[] = {
/** Company manager face selection window description */
static const WindowDesc _select_company_manager_face_desc(
- WDP_AUTO, 190, 163,
+ WDP_AUTO, 0, 0,
WC_COMPANY_MANAGER_FACE, WC_NONE,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_select_company_manager_face_widgets, lengthof(_nested_select_company_manager_face_widgets)
@@ -2008,7 +2008,7 @@ struct CompanyWindow : Window
};
static const WindowDesc _company_desc(
- WDP_AUTO, 360, 170,
+ WDP_AUTO, 0, 0,
WC_COMPANY, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_company_widgets, lengthof(_nested_company_widgets)
@@ -2118,7 +2118,7 @@ static const NWidgetPart _nested_buy_company_widgets[] = {
};
static const WindowDesc _buy_company_desc(
- WDP_AUTO, 334, 137,
+ WDP_AUTO, 0, 0,
WC_BUY_COMPANY, WC_NONE,
WDF_CONSTRUCTION,
_nested_buy_company_widgets, lengthof(_nested_buy_company_widgets)
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp
index bf132d8e3..1d15f2142 100644
--- a/src/dock_gui.cpp
+++ b/src/dock_gui.cpp
@@ -279,7 +279,7 @@ static const NWidgetPart _nested_build_docks_toolbar_widgets[] = {
};
static const WindowDesc _build_docks_toolbar_desc(
- WDP_ALIGN_TOOLBAR, 160, 36,
+ WDP_ALIGN_TOOLBAR, 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_docks_toolbar_widgets, lengthof(_nested_build_docks_toolbar_widgets)
@@ -315,7 +315,7 @@ static const NWidgetPart _nested_build_docks_scen_toolbar_widgets[] = {
/** Window definition for the build docks in scenario editor window. */
static const WindowDesc _build_docks_scen_toolbar_desc(
- WDP_AUTO, 115, 36,
+ WDP_AUTO, 0, 0,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_docks_scen_toolbar_widgets, lengthof(_nested_build_docks_scen_toolbar_widgets)
@@ -410,7 +410,7 @@ static const NWidgetPart _nested_build_dock_station_widgets[] = {
};
static const WindowDesc _build_dock_station_desc(
- WDP_AUTO, 148, 75,
+ WDP_AUTO, 0, 0,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_build_dock_station_widgets, lengthof(_nested_build_dock_station_widgets)
@@ -494,7 +494,7 @@ static const NWidgetPart _nested_build_docks_depot_widgets[] = {
};
static const WindowDesc _build_docks_depot_desc(
- WDP_AUTO, 204, 86,
+ WDP_AUTO, 0, 0,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_build_docks_depot_widgets, lengthof(_nested_build_docks_depot_widgets)
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index c2fbc3491..fe190ac0a 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -121,7 +121,7 @@ struct EnginePreviewWindow : Window {
};
static const WindowDesc _engine_preview_desc(
- WDP_CENTER, 300, 192,
+ WDP_CENTER, 0, 0,
WC_ENGINE_PREVIEW, WC_NONE,
WDF_CONSTRUCTION,
_nested_engine_preview_widgets, lengthof(_nested_engine_preview_widgets)
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index cbb8764d8..63318d92b 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -744,14 +744,14 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
};
static const WindowDesc _generate_landscape_desc(
- WDP_CENTER, 338, 313,
+ WDP_CENTER, 0, 0,
WC_GENERATE_LANDSCAPE, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_generate_landscape_widgets, lengthof(_nested_generate_landscape_widgets)
);
static const WindowDesc _heightmap_load_desc(
- WDP_CENTER, 338, 236,
+ WDP_CENTER, 0, 0,
WC_GENERATE_LANDSCAPE, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_heightmap_load_widgets, lengthof(_nested_heightmap_load_widgets)
@@ -1057,7 +1057,7 @@ static const NWidgetPart _nested_create_scenario_widgets[] = {
};
static const WindowDesc _create_scenario_desc(
- WDP_CENTER, 338, 170,
+ WDP_CENTER, 0, 0,
WC_GENERATE_LANDSCAPE, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_create_scenario_widgets, lengthof(_nested_create_scenario_widgets)
@@ -1090,7 +1090,7 @@ static const NWidgetPart _nested_generate_progress_widgets[] = {
static const WindowDesc _generate_progress_desc(
- WDP_CENTER, 181, 97,
+ WDP_CENTER, 0, 0,
WC_GENERATE_PROGRESS_WINDOW, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_generate_progress_widgets, lengthof(_nested_generate_progress_widgets)
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index a39b4ef5f..51d676325 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -140,7 +140,7 @@ static const NWidgetPart _nested_graph_legend_widgets[] = {
};
static const WindowDesc _graph_legend_desc(
- WDP_AUTO, 250, 196,
+ WDP_AUTO, 0, 0,
WC_GRAPH_LEGEND, WC_NONE,
0,
_nested_graph_legend_widgets, lengthof(_nested_graph_legend_widgets)
@@ -603,7 +603,7 @@ static const NWidgetPart _nested_operating_profit_widgets[] = {
};
static const WindowDesc _operating_profit_desc(
- WDP_AUTO, 576, 174,
+ WDP_AUTO, 0, 0,
WC_OPERATING_PROFIT, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_operating_profit_widgets, lengthof(_nested_operating_profit_widgets)
@@ -644,7 +644,7 @@ static const NWidgetPart _nested_income_graph_widgets[] = {
static const WindowDesc _income_graph_desc(
- WDP_AUTO, 576, 142,
+ WDP_AUTO, 0, 0,
WC_INCOME_GRAPH, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_income_graph_widgets, lengthof(_nested_income_graph_widgets)
@@ -682,7 +682,7 @@ static const NWidgetPart _nested_delivered_cargo_graph_widgets[] = {
};
static const WindowDesc _delivered_cargo_graph_desc(
- WDP_AUTO, 576, 142,
+ WDP_AUTO, 0, 0,
WC_DELIVERED_CARGO, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_delivered_cargo_graph_widgets, lengthof(_nested_delivered_cargo_graph_widgets)
@@ -734,7 +734,7 @@ static const NWidgetPart _nested_performance_history_widgets[] = {
};
static const WindowDesc _performance_history_desc(
- WDP_AUTO, 576, 238,
+ WDP_AUTO, 0, 0,
WC_PERFORMANCE_HISTORY, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_performance_history_widgets, lengthof(_nested_performance_history_widgets)
@@ -772,7 +772,7 @@ static const NWidgetPart _nested_company_value_graph_widgets[] = {
};
static const WindowDesc _company_value_graph_desc(
- WDP_AUTO, 576, 238,
+ WDP_AUTO, 0, 0,
WC_COMPANY_VALUE, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_company_value_graph_widgets, lengthof(_nested_company_value_graph_widgets)
@@ -943,7 +943,7 @@ static const NWidgetPart _nested_cargo_payment_rates_widgets[] = {
};
static const WindowDesc _cargo_payment_rates_desc(
- WDP_AUTO, 568, 46,
+ WDP_AUTO, 0, 0,
WC_PAYMENT_RATES, WC_NONE,
0,
_nested_cargo_payment_rates_widgets, lengthof(_nested_cargo_payment_rates_widgets)
@@ -1123,7 +1123,7 @@ static const NWidgetPart _nested_company_league_widgets[] = {
};
static const WindowDesc _company_league_desc(
- WDP_AUTO, 400, 167,
+ WDP_AUTO, 0, 0,
WC_COMPANY_LEAGUE, WC_NONE,
0,
_nested_company_league_widgets, lengthof(_nested_company_league_widgets)
@@ -1461,7 +1461,7 @@ static const NWidgetPart _nested_performance_rating_detail_widgets[] = {
};
static const WindowDesc _performance_rating_detail_desc(
- WDP_AUTO, 299, 241,
+ WDP_AUTO, 0, 0,
WC_PERFORMANCE_DETAIL, WC_NONE,
0,
_nested_performance_rating_detail_widgets, lengthof(_nested_performance_rating_detail_widgets)
diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp
index ed8f2303a..02563533d 100644
--- a/src/highscore_gui.cpp
+++ b/src/highscore_gui.cpp
@@ -179,14 +179,14 @@ static const NWidgetPart _nested_highscore_widgets[] = {
};
static const WindowDesc _highscore_desc(
- WDP_MANUAL, 641, 481,
+ WDP_MANUAL, 0, 0,
WC_HIGHSCORE, WC_NONE,
0,
_nested_highscore_widgets, lengthof(_nested_highscore_widgets)
);
static const WindowDesc _endgame_desc(
- WDP_MANUAL, 641, 481,
+ WDP_MANUAL, 0, 0,
WC_ENDSCREEN, WC_NONE,
0,
_nested_highscore_widgets, lengthof(_nested_highscore_widgets)
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp
index 8cc6d9072..f994d8bff 100644
--- a/src/intro_gui.cpp
+++ b/src/intro_gui.cpp
@@ -248,7 +248,7 @@ static const NWidgetPart _nested_select_game_widgets[] = {
};
static const WindowDesc _select_game_desc(
- WDP_CENTER, 336, 213,
+ WDP_CENTER, 0, 0,
WC_SELECT_GAME, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_select_game_widgets, lengthof(_nested_select_game_widgets)
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 424394742..e6d2b0025 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -497,7 +497,7 @@ static const NWidgetPart _nested_errmsg_widgets[] = {
};
static const WindowDesc _errmsg_desc(
- WDP_MANUAL, 240, 46,
+ WDP_MANUAL, 0, 0,
WC_ERRMSG, WC_NONE,
0,
_nested_errmsg_widgets, lengthof(_nested_errmsg_widgets)
@@ -517,7 +517,7 @@ static const NWidgetPart _nested_errmsg_face_widgets[] = {
};
static const WindowDesc _errmsg_face_desc(
- WDP_MANUAL, 334, 137,
+ WDP_MANUAL, 0, 0,
WC_ERRMSG, WC_NONE,
0,
_nested_errmsg_face_widgets, lengthof(_nested_errmsg_face_widgets)
@@ -1428,7 +1428,7 @@ static const NWidgetPart _nested_query_string_widgets[] = {
};
static const WindowDesc _query_string_desc(
- WDP_AUTO, 260, 42,
+ WDP_AUTO, 0, 0,
WC_QUERY_STRING, WC_NONE,
0,
_nested_query_string_widgets, lengthof(_nested_query_string_widgets)
@@ -1581,7 +1581,7 @@ static const NWidgetPart _nested_query_widgets[] = {
};
static const WindowDesc _query_desc(
- WDP_CENTER, 210, 82,
+ WDP_CENTER, 0, 0,
WC_CONFIRM_POPUP_QUERY, WC_NONE,
WDF_UNCLICK_BUTTONS | WDF_MODAL,
_nested_query_widgets, lengthof(_nested_query_widgets)
diff --git a/src/music_gui.cpp b/src/music_gui.cpp
index 835307f24..6342eb14d 100644
--- a/src/music_gui.cpp
+++ b/src/music_gui.cpp
@@ -409,7 +409,7 @@ static const NWidgetPart _nested_music_track_selection_widgets[] = {
};
static const WindowDesc _music_track_selection_desc(
- WDP_AUTO, 432, 218,
+ WDP_AUTO, 0, 0,
WC_MUSIC_TRACK_SELECTION, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_music_track_selection_widgets, lengthof(_nested_music_track_selection_widgets)
@@ -713,7 +713,7 @@ static const NWidgetPart _nested_music_window_widgets[] = {
};
static const WindowDesc _music_window_desc(
- WDP_AUTO, 300, 66,
+ WDP_AUTO, 0, 0,
WC_MUSIC_WINDOW, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_music_window_widgets, lengthof(_nested_music_window_widgets)
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 958a2eea5..5d69a21cc 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -46,7 +46,7 @@ static const NWidgetPart _nested_network_content_download_status_window_widgets[
/** Window description for the download window */
static const WindowDesc _network_content_download_status_window_desc(
- WDP_CENTER, 350, 85,
+ WDP_CENTER, 0, 0,
WC_NETWORK_STATUS_WINDOW, WC_NONE,
WDF_MODAL,
_nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets)
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 2fe844719..a5aaf1def 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1425,7 +1425,7 @@ static const NWidgetPart _nested_network_start_server_window_widgets[] = {
};
static const WindowDesc _network_start_server_window_desc(
- WDP_CENTER, 420, 244,
+ WDP_CENTER, 0, 0,
WC_NETWORK_WINDOW, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_network_start_server_window_widgets, lengthof(_nested_network_start_server_window_widgets)
@@ -1765,7 +1765,7 @@ static const NWidgetPart _nested_client_list_popup_widgets[] = {
};
static const WindowDesc _client_list_popup_desc(
- WDP_AUTO, 150, 1,
+ WDP_AUTO, 0, 0,
WC_TOOLBAR_MENU, WC_CLIENT_LIST,
0,
_nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets)
@@ -1978,7 +1978,7 @@ static const NWidgetPart _nested_client_list_widgets[] = {
};
static const WindowDesc _client_list_desc(
- WDP_AUTO, 250, 16,
+ WDP_AUTO, 0, 0,
WC_CLIENT_LIST, WC_NONE,
0,
_nested_client_list_widgets, lengthof(_nested_client_list_widgets)
@@ -2259,7 +2259,7 @@ static const NWidgetPart _nested_network_join_status_window_widgets[] = {
};
static const WindowDesc _network_join_status_window_desc(
- WDP_CENTER, 250, 85,
+ WDP_CENTER, 0, 0,
WC_NETWORK_STATUS_WINDOW, WC_NONE,
WDF_MODAL,
_nested_network_join_status_window_widgets, lengthof(_nested_network_join_status_window_widgets)
@@ -2382,7 +2382,7 @@ static const NWidgetPart _nested_network_company_password_window_widgets[] = {
};
static const WindowDesc _network_company_password_window_desc(
- WDP_AUTO, 300, 63,
+ WDP_AUTO, 0, 0,
WC_COMPANY_PASSWORD_WINDOW, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_network_company_password_window_widgets, lengthof(_nested_network_company_password_window_widgets)
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 55626fde6..6a6876443 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -106,7 +106,7 @@ static const NWidgetPart _nested_normal_news_widgets[] = {
};
static const WindowDesc _normal_news_desc(
- WDP_MANUAL, 430, 170,
+ WDP_MANUAL, 0, 0,
WC_NEWS_WINDOW, WC_NONE,
0,
_nested_normal_news_widgets, lengthof(_nested_normal_news_widgets)
@@ -133,7 +133,7 @@ static const NWidgetPart _nested_vehicle_news_widgets[] = {
};
static const WindowDesc _vehicle_news_desc(
- WDP_MANUAL, 430, 170,
+ WDP_MANUAL, 0, 0,
WC_NEWS_WINDOW, WC_NONE,
0,
_nested_vehicle_news_widgets, lengthof(_nested_vehicle_news_widgets)
@@ -164,7 +164,7 @@ static const NWidgetPart _nested_company_news_widgets[] = {
};
static const WindowDesc _company_news_desc(
- WDP_MANUAL, 430, 170,
+ WDP_MANUAL, 0, 0,
WC_NEWS_WINDOW, WC_NONE,
0,
_nested_company_news_widgets, lengthof(_nested_company_news_widgets)
@@ -187,7 +187,7 @@ static const NWidgetPart _nested_thin_news_widgets[] = {
};
static const WindowDesc _thin_news_desc(
- WDP_MANUAL, 430, 130,
+ WDP_MANUAL, 0, 0,
WC_NEWS_WINDOW, WC_NONE,
0,
_nested_thin_news_widgets, lengthof(_nested_thin_news_widgets)
@@ -211,7 +211,7 @@ static const NWidgetPart _nested_small_news_widgets[] = {
};
static const WindowDesc _small_news_desc(
- WDP_MANUAL, 280, 87,
+ WDP_MANUAL, 0, 0,
WC_NEWS_WINDOW, WC_NONE,
0,
_nested_small_news_widgets, lengthof(_nested_small_news_widgets)
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index 0317b3260..8d7c13c2a 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -384,7 +384,7 @@ static const NWidgetPart _nested_osk_widgets[] = {
};
static const WindowDesc _osk_desc(
- WDP_CENTER, 256, 140,
+ WDP_CENTER, 0, 0,
WC_OSK, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_osk_widgets, lengthof(_nested_osk_widgets)
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 95b193039..9f20b6350 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -856,7 +856,7 @@ static const NWidgetPart _nested_build_rail_widgets[] = {
};
static const WindowDesc _build_rail_desc(
- WDP_ALIGN_TOOLBAR, 350, 36,
+ WDP_ALIGN_TOOLBAR, 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_rail_widgets, lengthof(_nested_build_rail_widgets)
@@ -1461,7 +1461,7 @@ static const NWidgetPart _nested_newstation_builder_widgets[] = {
/** High level window description of the default station-build window */
static const WindowDesc _station_builder_desc(
- WDP_AUTO, 148, 200,
+ WDP_AUTO, 0, 0,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_station_builder_widgets, lengthof(_nested_station_builder_widgets)
@@ -1469,7 +1469,7 @@ static const WindowDesc _station_builder_desc(
/** High level window description of the newGRF station-build window */
static const WindowDesc _newstation_builder_desc(
- WDP_AUTO, 148, 290,
+ WDP_AUTO, 0, 0,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_newstation_builder_widgets, lengthof(_nested_newstation_builder_widgets)
@@ -1674,7 +1674,7 @@ static const NWidgetPart _nested_signal_builder_widgets[] = {
/** Signal selection window description */
static const WindowDesc _signal_builder_desc(
- WDP_AUTO, 154, 68,
+ WDP_AUTO, 0, 0,
WC_BUILD_SIGNAL, WC_BUILD_TOOLBAR,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_signal_builder_widgets, lengthof(_nested_signal_builder_widgets)
@@ -1764,7 +1764,7 @@ static const NWidgetPart _nested_build_depot_widgets[] = {
};
static const WindowDesc _build_depot_desc(
- WDP_AUTO, 140, 122,
+ WDP_AUTO, 0, 0,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_build_depot_widgets, lengthof(_nested_build_depot_widgets)
@@ -1864,7 +1864,7 @@ static const NWidgetPart _nested_build_waypoint_widgets[] = {
};
static const WindowDesc _build_waypoint_desc(
- WDP_AUTO, 344, 92,
+ WDP_AUTO, 0, 0,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_build_waypoint_widgets, lengthof(_nested_build_waypoint_widgets)
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 00773d21c..41ce1f7ab 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -661,7 +661,7 @@ static const NWidgetPart _nested_build_road_widgets[] = {
};
static const WindowDesc _build_road_desc(
- WDP_ALIGN_TOOLBAR, 263, 36,
+ WDP_ALIGN_TOOLBAR, 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_road_widgets, lengthof(_nested_build_road_widgets)
@@ -700,7 +700,7 @@ static const NWidgetPart _nested_build_tramway_widgets[] = {
};
static const WindowDesc _build_tramway_desc(
- WDP_ALIGN_TOOLBAR, 241, 36,
+ WDP_ALIGN_TOOLBAR, 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_tramway_widgets, lengthof(_nested_build_tramway_widgets)
@@ -743,7 +743,7 @@ static const NWidgetPart _nested_build_road_scen_widgets[] = {
};
static const WindowDesc _build_road_scen_desc(
- WDP_AUTO, 197, 36,
+ WDP_AUTO, 0, 0,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_road_scen_widgets, lengthof(_nested_build_road_scen_widgets)
@@ -841,7 +841,7 @@ static const NWidgetPart _nested_build_road_depot_widgets[] = {
};
static const WindowDesc _build_road_depot_desc(
- WDP_AUTO, 140, 122,
+ WDP_AUTO, 0, 0,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_build_road_depot_widgets, lengthof(_nested_build_road_depot_widgets)
@@ -1010,7 +1010,7 @@ static const NWidgetPart _nested_rv_station_picker_widgets[] = {
};
static const WindowDesc _rv_station_picker_desc(
- WDP_AUTO, 207, 178,
+ WDP_AUTO, 0, 0,
WC_BUS_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
_nested_rv_station_picker_widgets, lengthof(_nested_rv_station_picker_widgets)
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 8b1627698..354aca5a8 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -476,7 +476,7 @@ static const NWidgetPart _nested_game_options_widgets[] = {
};
static const WindowDesc _game_options_desc(
- WDP_CENTER, 370, 249,
+ WDP_CENTER, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_game_options_widgets, lengthof(_nested_game_options_widgets)
@@ -750,7 +750,7 @@ static const NWidgetPart _nested_game_difficulty_widgets[] = {
/** Window definition for the game difficulty settings window */
static const WindowDesc _game_difficulty_desc(
- WDP_CENTER, 370, 279,
+ WDP_CENTER, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_game_difficulty_widgets, lengthof(_nested_game_difficulty_widgets)
@@ -1923,7 +1923,7 @@ static const NWidgetPart _nested_cust_currency_widgets[] = {
};
static const WindowDesc _cust_currency_desc(
- WDP_CENTER, 230, 120,
+ WDP_CENTER, 0, 0,
WC_CUSTOM_CURRENCY, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_cust_currency_widgets, lengthof(_nested_cust_currency_widgets)
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index 3d42df424..0baf3e70b 100644
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -408,7 +408,7 @@ static const NWidgetPart _nested_query_sign_edit_widgets[] = {
};
static const WindowDesc _query_sign_edit_desc(
- WDP_AUTO, 260, 42,
+ WDP_AUTO, 0, 0,
WC_QUERY_STRING, WC_NONE,
WDF_CONSTRUCTION | WDF_UNCLICK_BUTTONS,
_nested_query_sign_edit_widgets, lengthof(_nested_query_sign_edit_widgets)
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp
index f7afc69ff..57469a917 100644
--- a/src/terraform_gui.cpp
+++ b/src/terraform_gui.cpp
@@ -345,7 +345,7 @@ static const NWidgetPart _nested_terraform_widgets[] = {
};
static const WindowDesc _terraform_desc(
- WDP_MANUAL, 158, 36,
+ WDP_MANUAL, 0, 0,
WC_SCEN_LAND_GEN, WC_NONE,
WDF_CONSTRUCTION,
_nested_terraform_widgets, lengthof(_nested_terraform_widgets)
@@ -773,7 +773,7 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
};
static const WindowDesc _scen_edit_land_gen_desc(
- WDP_AUTO, 163, 103,
+ WDP_AUTO, 0, 0,
WC_SCEN_LAND_GEN, WC_NONE,
WDF_CONSTRUCTION,
_nested_scen_edit_land_gen_widgets, lengthof(_nested_scen_edit_land_gen_widgets)
diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp
index b75f78066..9b8803c64 100644
--- a/src/transparency_gui.cpp
+++ b/src/transparency_gui.cpp
@@ -156,7 +156,7 @@ static const NWidgetPart _nested_transparency_widgets[] = {
};
static const WindowDesc _transparency_desc(
- WDP_MANUAL, 219, 49,
+ WDP_MANUAL, 0, 0,
WC_TRANSPARENCY_TOOLBAR, WC_NONE,
0,
_nested_transparency_widgets, lengthof(_nested_transparency_widgets)
diff --git a/src/tree_gui.cpp b/src/tree_gui.cpp
index fea9ee0f5..eef7df642 100644
--- a/src/tree_gui.cpp
+++ b/src/tree_gui.cpp
@@ -225,7 +225,7 @@ static const NWidgetPart _nested_build_trees_widgets[] = {
};
static const WindowDesc _build_trees_desc(
- WDP_AUTO, 143, 184,
+ WDP_AUTO, 0, 0,
WC_BUILD_TREES, WC_NONE,
WDF_CONSTRUCTION,
_nested_build_trees_widgets, lengthof(_nested_build_trees_widgets)