diff options
author | peter1138 <peter1138@openttd.org> | 2014-10-05 11:20:02 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2014-10-05 11:20:02 +0000 |
commit | 0877f892c5a3dbffef8f482c9b0c35bd41f77cee (patch) | |
tree | bf50e6f3cb9bf2641df1a56f1001b3688e41a5a9 /src/fios_gui.cpp | |
parent | 42c65264f8dd60805b6a42a495ea446332f13b16 (diff) | |
download | openttd-0877f892c5a3dbffef8f482c9b0c35bd41f77cee.tar.xz |
(svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort buttons with non-static width.
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 14c335e94..9316deb65 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -483,7 +483,7 @@ public: case WID_SL_SORT_BYNAME: case WID_SL_SORT_BYDATE: { 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; |