From 293dfd7c3e754b846b745d80fa4ca6795b9f7ed0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 28 Nov 2009 14:42:35 +0000 Subject: (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. --- src/misc_gui.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 0ebfa56db..d5e1d3e06 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -70,7 +70,7 @@ static const NWidgetPart _nested_land_info_widgets[] = { }; static const WindowDesc _land_info_desc( - WDP_AUTO, WDP_AUTO, 0, 0, + WDP_AUTO, 0, 0, WC_LAND_INFO, WC_NONE, 0, _nested_land_info_widgets, lengthof(_nested_land_info_widgets) @@ -340,7 +340,7 @@ static const NWidgetPart _nested_about_widgets[] = { }; static const WindowDesc _about_desc( - WDP_CENTER, WDP_CENTER, 0, 0, + WDP_CENTER, 0, 0, WC_GAME_OPTIONS, WC_NONE, 0, _nested_about_widgets, lengthof(_nested_about_widgets) @@ -497,7 +497,7 @@ static const NWidgetPart _nested_errmsg_widgets[] = { }; static const WindowDesc _errmsg_desc( - WDP_MANUAL, WDP_MANUAL, 240, 46, + WDP_MANUAL, 240, 46, 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, WDP_MANUAL, 334, 137, + WDP_MANUAL, 334, 137, WC_ERRMSG, WC_NONE, 0, _nested_errmsg_face_widgets, lengthof(_nested_errmsg_face_widgets) @@ -764,7 +764,7 @@ static const NWidgetPart _nested_tooltips_widgets[] = { }; static const WindowDesc _tool_tips_desc( - WDP_MANUAL, WDP_MANUAL, 0, 0, // Coordinates and sizes are not used, + WDP_MANUAL, 0, 0, // Coordinates and sizes are not used, WC_TOOLTIPS, WC_NONE, 0, _nested_tooltips_widgets, lengthof(_nested_tooltips_widgets) @@ -1428,7 +1428,7 @@ static const NWidgetPart _nested_query_string_widgets[] = { }; static const WindowDesc _query_string_desc( - WDP_AUTO, WDP_AUTO, 260, 42, + WDP_AUTO, 260, 42, 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, WDP_CENTER, 210, 82, + WDP_CENTER, 210, 82, WC_CONFIRM_POPUP_QUERY, WC_NONE, WDF_UNCLICK_BUTTONS | WDF_MODAL, _nested_query_widgets, lengthof(_nested_query_widgets) @@ -2022,14 +2022,14 @@ public: }; static const WindowDesc _load_dialog_desc( - WDP_CENTER, WDP_CENTER, 257, 294, + WDP_CENTER, 257, 294, WC_SAVELOAD, WC_NONE, WDF_UNCLICK_BUTTONS, _nested_load_dialog_widgets, lengthof(_nested_load_dialog_widgets) ); static const WindowDesc _save_dialog_desc( - WDP_CENTER, WDP_CENTER, 257, 320, + WDP_CENTER, 257, 320, WC_SAVELOAD, WC_NONE, WDF_UNCLICK_BUTTONS, _nested_save_dialog_widgets, lengthof(_nested_save_dialog_widgets) -- cgit v1.2.3-54-g00ecf