summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-02-22 19:34:57 +0000
committerrubidium <rubidium@openttd.org>2014-02-22 19:34:57 +0000
commit90fef59f8010882e99cdf27e52af6e9695edfabb (patch)
tree9b83494b3146c2d7541544a4705a0f4499e94815
parent7bdd67e70100ed0eb953a7e6ce0bf438c7afcbe6 (diff)
downloadopenttd-90fef59f8010882e99cdf27e52af6e9695edfabb.tar.xz
(svn r26362) -Fix [FS#5906]: reset the default window size icon size just like all the other cached icon sizes (based on patch by MJP)
-rw-r--r--src/widget.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 81a776045..31c5ea853 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -2069,21 +2069,22 @@ Dimension NWidgetScrollbar::horizontal_dimension = {0, 0};
/** Reset the cached dimensions. */
/* static */ void NWidgetLeaf::InvalidateDimensionCache()
{
- shadebox_dimension.width = shadebox_dimension.height = 0;
- debugbox_dimension.width = debugbox_dimension.height = 0;
- stickybox_dimension.width = stickybox_dimension.height = 0;
- resizebox_dimension.width = resizebox_dimension.height = 0;
- closebox_dimension.width = closebox_dimension.height = 0;
- dropdown_dimension.width = dropdown_dimension.height = 0;
+ shadebox_dimension.width = shadebox_dimension.height = 0;
+ debugbox_dimension.width = debugbox_dimension.height = 0;
+ defsizebox_dimension.width = defsizebox_dimension.height = 0;
+ stickybox_dimension.width = stickybox_dimension.height = 0;
+ resizebox_dimension.width = resizebox_dimension.height = 0;
+ closebox_dimension.width = closebox_dimension.height = 0;
+ dropdown_dimension.width = dropdown_dimension.height = 0;
}
-Dimension NWidgetLeaf::shadebox_dimension = {0, 0};
-Dimension NWidgetLeaf::debugbox_dimension = {0, 0};
+Dimension NWidgetLeaf::shadebox_dimension = {0, 0};
+Dimension NWidgetLeaf::debugbox_dimension = {0, 0};
Dimension NWidgetLeaf::defsizebox_dimension = {0, 0};
-Dimension NWidgetLeaf::stickybox_dimension = {0, 0};
-Dimension NWidgetLeaf::resizebox_dimension = {0, 0};
-Dimension NWidgetLeaf::closebox_dimension = {0, 0};
-Dimension NWidgetLeaf::dropdown_dimension = {0, 0};
+Dimension NWidgetLeaf::stickybox_dimension = {0, 0};
+Dimension NWidgetLeaf::resizebox_dimension = {0, 0};
+Dimension NWidgetLeaf::closebox_dimension = {0, 0};
+Dimension NWidgetLeaf::dropdown_dimension = {0, 0};
/**
* Nested leaf widget.