diff options
author | rubidium <rubidium@openttd.org> | 2009-11-17 19:16:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-17 19:16:48 +0000 |
commit | 5f2ddfbc5aa2674124e7af62d405a4d76cdfb0e2 (patch) | |
tree | 555dcdb99e5bae8aea6350713c53469486f925c7 /src/network | |
parent | 063e8adcecff0818dfb64f7640b11a1b7b982d08 (diff) | |
download | openttd-5f2ddfbc5aa2674124e7af62d405a4d76cdfb0e2.tar.xz |
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_chat_gui.cpp | 2 | ||||
-rw-r--r-- | src/network/network_content_gui.cpp | 4 | ||||
-rw-r--r-- | src/network/network_gui.cpp | 14 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 242048b1f..731375b4d 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -543,7 +543,7 @@ static const NWidgetPart _nested_chat_window_widgets[] = { }; static const WindowDesc _chat_window_desc( - WDP_CENTER, 0, 320, 14, 640, 14, // x, y, width, height + WDP_CENTER, 0, 640, 14, // x, y, width, height WC_SEND_NETWORK_MSG, WC_NONE, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET, _nested_chat_window_widgets, lengthof(_nested_chat_window_widgets) diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index fbe7197f9..dc24eaee3 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -47,7 +47,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, WDP_CENTER, 350, 85, 350, 85, + WDP_CENTER, WDP_CENTER, 350, 85, WC_NETWORK_STATUS_WINDOW, WC_NONE, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_MODAL, _nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets) @@ -868,7 +868,7 @@ static const NWidgetPart _nested_network_content_list_widgets[] = { /** Window description of the content list */ static const WindowDesc _network_content_list_desc( - WDP_CENTER, WDP_CENTER, 450, 278, 630, 460, + WDP_CENTER, WDP_CENTER, 630, 460, WC_NETWORK_WINDOW, WC_NONE, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _nested_network_content_list_widgets, lengthof(_nested_network_content_list_widgets) diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 434fdb6d7..b84701972 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1001,7 +1001,7 @@ static const NWidgetPart _nested_network_game_widgets[] = { }; static const WindowDesc _network_game_window_desc( - WDP_CENTER, WDP_CENTER, 450, 264, 1000, 730, + WDP_CENTER, WDP_CENTER, 1000, 730, WC_NETWORK_WINDOW, WC_NONE, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _nested_network_game_widgets, lengthof(_nested_network_game_widgets) @@ -1418,7 +1418,7 @@ static const NWidgetPart _nested_network_start_server_window_widgets[] = { }; static const WindowDesc _network_start_server_window_desc( - WDP_CENTER, WDP_CENTER, 420, 244, 420, 244, + WDP_CENTER, WDP_CENTER, 420, 244, WC_NETWORK_WINDOW, WC_NONE, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, _nested_network_start_server_window_widgets, lengthof(_nested_network_start_server_window_widgets) @@ -1709,7 +1709,7 @@ static const NWidgetPart _nested_network_lobby_window_widgets[] = { }; static const WindowDesc _network_lobby_window_desc( - WDP_CENTER, WDP_CENTER, 0, 0, 0, 0, + WDP_CENTER, WDP_CENTER, 0, 0, WC_NETWORK_WINDOW, WC_NONE, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, _nested_network_lobby_window_widgets, lengthof(_nested_network_lobby_window_widgets) @@ -1752,7 +1752,7 @@ static const NWidgetPart _nested_client_list_popup_widgets[] = { }; static const WindowDesc _client_list_popup_desc( - WDP_AUTO, WDP_AUTO, 150, 1, 150, 1, + WDP_AUTO, WDP_AUTO, 150, 1, WC_TOOLBAR_MENU, WC_CLIENT_LIST, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET, _nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets) @@ -1968,7 +1968,7 @@ static const NWidgetPart _nested_client_list_widgets[] = { }; static const WindowDesc _client_list_desc( - WDP_AUTO, WDP_AUTO, 250, 16, 250, 16, + WDP_AUTO, WDP_AUTO, 250, 16, WC_CLIENT_LIST, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE, _nested_client_list_widgets, lengthof(_nested_client_list_widgets) @@ -2207,7 +2207,7 @@ static const NWidgetPart _nested_network_join_status_window_widgets[] = { }; static const WindowDesc _network_join_status_window_desc( - WDP_CENTER, WDP_CENTER, 250, 85, 250, 85, + WDP_CENTER, WDP_CENTER, 250, 85, WC_NETWORK_STATUS_WINDOW, WC_NONE, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_MODAL, _nested_network_join_status_window_widgets, lengthof(_nested_network_join_status_window_widgets) @@ -2332,7 +2332,7 @@ static const NWidgetPart _nested_network_company_password_window_widgets[] = { }; static const WindowDesc _network_company_password_window_desc( - WDP_AUTO, WDP_AUTO, 300, 63, 300, 63, + WDP_AUTO, WDP_AUTO, 300, 63, WC_COMPANY_PASSWORD_WINDOW, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, _nested_network_company_password_window_widgets, lengthof(_nested_network_company_password_window_widgets) |