summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-28 13:38:34 +0000
committerrubidium <rubidium@openttd.org>2009-11-28 13:38:34 +0000
commitff32ea24fc031a7d3c3ca259cd75bbee48a9cb96 (patch)
tree37bb63bce136f6dc8450c18409c60ed8476eb4c5 /src
parent2dbf1d72f9bb6f7d9cb0ea3cd983f7109fc675f8 (diff)
downloadopenttd-ff32ea24fc031a7d3c3ca259cd75bbee48a9cb96.tar.xz
(svn r18311) -Codechange: no need to hardcode locations of some 'random' windows
Diffstat (limited to 'src')
-rw-r--r--src/cheat_gui.cpp2
-rw-r--r--src/company_gui.cpp2
-rw-r--r--src/misc_gui.cpp2
-rw-r--r--src/music_gui.cpp4
-rw-r--r--src/news_gui.cpp4
-rw-r--r--src/signs_gui.cpp2
6 files changed, 8 insertions, 8 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index 1740ca163..1ded18389 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -316,7 +316,7 @@ struct CheatWindow : Window {
};
static const WindowDesc _cheats_desc(
- 240, 22, 0, 0,
+ WDP_AUTO, WDP_AUTO, 0, 0,
WC_CHEATS, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_cheat_widgets, lengthof(_nested_cheat_widgets)
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 72d0d82e2..978984a97 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -2100,7 +2100,7 @@ static const NWidgetPart _nested_buy_company_widgets[] = {
};
static const WindowDesc _buy_company_desc(
- 153, 171, 334, 137,
+ WDP_AUTO, WDP_AUTO, 334, 137,
WC_BUY_COMPANY, WC_NONE,
WDF_CONSTRUCTION,
_nested_buy_company_widgets, lengthof(_nested_buy_company_widgets)
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index fea06d27c..9c9b52d02 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1428,7 +1428,7 @@ static const NWidgetPart _nested_query_string_widgets[] = {
};
static const WindowDesc _query_string_desc(
- 190, 219, 260, 42,
+ WDP_AUTO, WDP_AUTO, 260, 42,
WC_QUERY_STRING, WC_NONE,
0,
_nested_query_string_widgets, lengthof(_nested_query_string_widgets)
diff --git a/src/music_gui.cpp b/src/music_gui.cpp
index 5a2db97b4..0ce946bee 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(
- 104, 131, 432, 218,
+ WDP_AUTO, WDP_AUTO, 432, 218,
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(
- 0, 22, 300, 66,
+ WDP_AUTO, WDP_AUTO, 300, 66,
WC_MUSIC_WINDOW, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_music_window_widgets, lengthof(_nested_music_window_widgets)
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 5f04ea6de..5e5b38fe8 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -1026,7 +1026,7 @@ static const NWidgetPart _nested_message_history[] = {
};
static const WindowDesc _message_history_desc(
- 240, 22, 400, 140,
+ WDP_AUTO, WDP_AUTO, 400, 140,
WC_MESSAGE_HISTORY, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_message_history, lengthof(_nested_message_history)
@@ -1312,7 +1312,7 @@ static const NWidgetPart _nested_message_options_widgets[] = {
};
static const WindowDesc _message_options_desc(
- 270, 22, 0, 0,
+ WDP_AUTO, WDP_AUTO, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
WDF_UNCLICK_BUTTONS,
_nested_message_options_widgets, lengthof(_nested_message_options_widgets)
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index 3b4bd43cb..3b91455bd 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(
- 190, 170, 260, 42,
+ WDP_AUTO, WDP_AUTO, 260, 42,
WC_QUERY_STRING, WC_NONE,
WDF_CONSTRUCTION | WDF_UNCLICK_BUTTONS,
_nested_query_sign_edit_widgets, lengthof(_nested_query_sign_edit_widgets)