summaryrefslogtreecommitdiff
path: root/src/autoreplace_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2014-10-05 11:20:02 +0000
committerpeter1138 <peter1138@openttd.org>2014-10-05 11:20:02 +0000
commit0877f892c5a3dbffef8f482c9b0c35bd41f77cee (patch)
treebf50e6f3cb9bf2641df1a56f1001b3688e41a5a9 /src/autoreplace_gui.cpp
parent42c65264f8dd60805b6a42a495ea446332f13b16 (diff)
downloadopenttd-0877f892c5a3dbffef8f482c9b0c35bd41f77cee.tar.xz
(svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort buttons with non-static width.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index a558724a9..691042a1d 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -259,7 +259,7 @@ public:
switch (widget) {
case WID_RV_SORT_ASCENDING_DESCENDING: {
Dimension d = GetStringBoundingBox(this->GetWidget<NWidgetCore>(widget)->widget_data);
- d.width += padding.width + WD_SORTBUTTON_ARROW_WIDTH * 2; // Doubled since the string is centred and it also looks better.
+ d.width += padding.width + Window::SortButtonWidth() * 2; // Doubled since the string is centred and it also looks better.
d.height += padding.height;
*size = maxdim(*size, d);
break;