summaryrefslogtreecommitdiff
path: root/src/story_gui.cpp
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/story_gui.cpp
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/story_gui.cpp')
-rw-r--r--src/story_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp
index defbb6449..7a23dec7d 100644
--- a/src/story_gui.cpp
+++ b/src/story_gui.cpp
@@ -585,8 +585,8 @@ public:
}
}
- d.width += padding.width + WD_DROPDOWNTEXT_LEFT + WD_DROPDOWNTEXT_RIGHT;
- d.height += padding.height + WD_DROPDOWNTEXT_TOP + WD_DROPDOWNTEXT_BOTTOM;
+ d.width += padding.width;
+ d.height += padding.height;
*size = maxdim(*size, d);
break;
}