# HG changeset patch # User rubidium # Date 2009-11-28 13:38:34 # Node ID be00b2212ddc89bbe43c065d3f962d9da92cad68 # Parent d3260b1b5698f9261efbb6b78587518d3d25db40 (svn r18311) -Codechange: no need to hardcode locations of some 'random' windows diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp --- 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 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -2100,7 +2100,7 @@ static const NWidgetPart _nested_buy_com }; 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 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1428,7 +1428,7 @@ static const NWidgetPart _nested_query_s }; 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 --- a/src/music_gui.cpp +++ b/src/music_gui.cpp @@ -409,7 +409,7 @@ static const NWidgetPart _nested_music_t }; 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_w }; 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 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -1026,7 +1026,7 @@ static const NWidgetPart _nested_message }; 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 }; 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 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -408,7 +408,7 @@ static const NWidgetPart _nested_query_s }; 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)