Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
This is to allow unit-tests to produce more useful output.
This commit is contained in:

committed by
Peter Nelson

parent
873f93cab1
commit
18fb8e153f
@@ -952,7 +952,7 @@ static const NWidgetPart _nested_network_game_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_game_window_desc(
|
||||
static WindowDesc _network_game_window_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, "list_servers", 1000, 730,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -1219,7 +1219,7 @@ static const NWidgetPart _nested_network_start_server_window_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_start_server_window_desc(
|
||||
static WindowDesc _network_start_server_window_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -1298,7 +1298,7 @@ static const NWidgetPart _nested_client_list_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _client_list_desc(
|
||||
static WindowDesc _client_list_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "list_clients", 220, 300,
|
||||
WC_CLIENT_LIST, WC_NONE,
|
||||
0,
|
||||
@@ -2208,7 +2208,7 @@ static const NWidgetPart _nested_network_join_status_window_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_join_status_window_desc(
|
||||
static WindowDesc _network_join_status_window_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_STATUS_WINDOW, WC_NONE,
|
||||
WDF_MODAL,
|
||||
@@ -2330,7 +2330,7 @@ static const NWidgetPart _nested_network_company_password_window_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_company_password_window_desc(
|
||||
static WindowDesc _network_company_password_window_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, nullptr, 0, 0,
|
||||
WC_COMPANY_PASSWORD_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -2439,7 +2439,7 @@ static const NWidgetPart _nested_network_ask_relay_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_ask_relay_desc(
|
||||
static WindowDesc _network_ask_relay_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_ASK_RELAY, WC_NONE,
|
||||
WDF_MODAL,
|
||||
@@ -2537,7 +2537,7 @@ static const NWidgetPart _nested_network_ask_survey_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_ask_survey_desc(
|
||||
static WindowDesc _network_ask_survey_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_ASK_SURVEY, WC_NONE,
|
||||
WDF_MODAL,
|
||||
|
Reference in New Issue
Block a user