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/network | |
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/network')
-rw-r--r-- | src/network/network_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 1a027cb62..3a36f146c 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -523,11 +523,11 @@ public: break; case WID_NG_NAME: - size->width += 2 * WD_SORTBUTTON_ARROW_WIDTH; // Make space for the arrow + size->width += 2 * Window::SortButtonWidth(); // Make space for the arrow break; case WID_NG_CLIENTS: - size->width += 2 * WD_SORTBUTTON_ARROW_WIDTH; // Make space for the arrow + size->width += 2 * Window::SortButtonWidth(); // Make space for the arrow SetDParamMaxValue(0, MAX_CLIENTS); SetDParamMaxValue(1, MAX_CLIENTS); SetDParamMaxValue(2, MAX_COMPANIES); @@ -536,7 +536,7 @@ public: break; case WID_NG_MAPSIZE: - size->width += 2 * WD_SORTBUTTON_ARROW_WIDTH; // Make space for the arrow + size->width += 2 * Window::SortButtonWidth(); // Make space for the arrow SetDParamMaxValue(0, MAX_MAP_SIZE); SetDParamMaxValue(1, MAX_MAP_SIZE); *size = maxdim(*size, GetStringBoundingBox(STR_NETWORK_SERVER_LIST_MAP_SIZE_SHORT)); @@ -544,7 +544,7 @@ public: case WID_NG_DATE: case WID_NG_YEARS: - size->width += 2 * WD_SORTBUTTON_ARROW_WIDTH; // Make space for the arrow + size->width += 2 * Window::SortButtonWidth(); // Make space for the arrow SetDParamMaxValue(0, 5); *size = maxdim(*size, GetStringBoundingBox(STR_JUST_INT)); break; |