summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-17 19:16:48 +0000
committerrubidium <rubidium@openttd.org>2009-11-17 19:16:48 +0000
commit5f2ddfbc5aa2674124e7af62d405a4d76cdfb0e2 (patch)
tree555dcdb99e5bae8aea6350713c53469486f925c7 /src/misc_gui.cpp
parent063e8adcecff0818dfb64f7640b11a1b7b982d08 (diff)
downloadopenttd-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/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 7b32704b5..ce8e3df16 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -72,7 +72,7 @@ static const NWidgetPart _nested_land_info_widgets[] = {
};
static const WindowDesc _land_info_desc(
- WDP_AUTO, WDP_AUTO, 0, 0, 0, 0,
+ WDP_AUTO, WDP_AUTO, 0, 0,
WC_LAND_INFO, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_land_info_widgets, lengthof(_nested_land_info_widgets)
@@ -346,7 +346,7 @@ static const NWidgetPart _nested_about_widgets[] = {
};
static const WindowDesc _about_desc(
- WDP_CENTER, WDP_CENTER, 0, 0, 0, 0,
+ WDP_CENTER, WDP_CENTER, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_about_widgets, lengthof(_nested_about_widgets)
@@ -507,7 +507,7 @@ static const NWidgetPart _nested_errmsg_widgets[] = {
};
static const WindowDesc _errmsg_desc(
- 0, 0, 240, 46, 240, 46, // x/y position is not used.
+ 0, 0, 240, 46, // x/y position is not used.
WC_ERRMSG, WC_NONE,
WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_errmsg_widgets, lengthof(_nested_errmsg_widgets)
@@ -527,7 +527,7 @@ static const NWidgetPart _nested_errmsg_face_widgets[] = {
};
static const WindowDesc _errmsg_face_desc(
- 0, 0, 334, 137, 334, 137, // x/y position is not used.
+ 0, 0, 334, 137, // x/y position is not used.
WC_ERRMSG, WC_NONE,
WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_errmsg_face_widgets, lengthof(_nested_errmsg_face_widgets)
@@ -774,7 +774,7 @@ static const NWidgetPart _nested_tooltips_widgets[] = {
};
static const WindowDesc _tool_tips_desc(
- 100, 100, 0, 0, 0, 0, // Coordinates and sizes are not used,
+ 100, 100, 0, 0, // Coordinates and sizes are not used,
WC_TOOLTIPS, WC_NONE,
0,
_nested_tooltips_widgets, lengthof(_nested_tooltips_widgets)
@@ -1440,7 +1440,7 @@ static const NWidgetPart _nested_query_string_widgets[] = {
};
static const WindowDesc _query_string_desc(
- 190, 219, 260, 42, 260, 42,
+ 190, 219, 260, 42,
WC_QUERY_STRING, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_nested_query_string_widgets, lengthof(_nested_query_string_widgets)
@@ -1595,7 +1595,7 @@ static const NWidgetPart _nested_query_widgets[] = {
};
static const WindowDesc _query_desc(
- WDP_CENTER, WDP_CENTER, 210, 82, 210, 82,
+ WDP_CENTER, WDP_CENTER, 210, 82,
WC_CONFIRM_POPUP_QUERY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_DEF_WIDGET | WDF_MODAL,
_nested_query_widgets, lengthof(_nested_query_widgets)
@@ -2038,14 +2038,14 @@ public:
};
static const WindowDesc _load_dialog_desc(
- WDP_CENTER, WDP_CENTER, 257, 154, 257, 294,
+ WDP_CENTER, WDP_CENTER, 257, 294,
WC_SAVELOAD, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
_nested_load_dialog_widgets, lengthof(_nested_load_dialog_widgets)
);
static const WindowDesc _save_dialog_desc(
- WDP_CENTER, WDP_CENTER, 257, 180, 257, 320,
+ WDP_CENTER, WDP_CENTER, 257, 320,
WC_SAVELOAD, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
_nested_save_dialog_widgets, lengthof(_nested_save_dialog_widgets)