summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-13 19:18:30 +0000
committerfrosch <frosch@openttd.org>2013-10-13 19:18:30 +0000
commit12ddbb7cb11ddeba47a6bed8d36bef6432aa3236 (patch)
treeec386d7d837736fbff2d859be90eb5686b4a5e46 /src/widget_type.h
parentd9717c0b017a9783bab4793ac367a8a5d12bef5d (diff)
downloadopenttd-12ddbb7cb11ddeba47a6bed8d36bef6432aa3236.tar.xz
(svn r25864) -Fix: Use the actual sprite dimensions for sizing the dropdown arrow of dropdown widgets.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index 60980f28c..6d8b32bc9 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -777,6 +777,8 @@ public:
bool ButtonHit(const Point &pt);
static void InvalidateDimensionCache();
+
+ static Dimension dropdown_dimension; ///< Cached size of a dropdown widget.
private:
static Dimension shadebox_dimension; ///< Cached size of a shadebox widget.
static Dimension debugbox_dimension; ///< Cached size of a debugbox widget.