From 0877f892c5a3dbffef8f482c9b0c35bd41f77cee Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 5 Oct 2014 11:20:02 +0000 Subject: (svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort buttons with non-static width. --- src/bridge_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bridge_gui.cpp') diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp index 95c9d7137..797ead1f5 100644 --- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -168,7 +168,7 @@ public: switch (widget) { case WID_BBS_DROPDOWN_ORDER: { Dimension d = GetStringBoundingBox(this->GetWidget(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; -- cgit v1.2.3-54-g00ecf