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/window_gui.h | |
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/window_gui.h')
-rw-r--r-- | src/window_gui.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index bf8500f0f..e3314d12b 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -136,8 +136,6 @@ enum WidgetDrawDistances { WD_DROPDOWNTEXT_TOP = 1, ///< Top offset of the dropdown widget string. WD_DROPDOWNTEXT_BOTTOM = 1, ///< Bottom offset of the dropdown widget string. - WD_SORTBUTTON_ARROW_WIDTH = 11, ///< Width of up/down arrow of sort button state. - WD_PAR_VSEP_NORMAL = 2, ///< Normal amount of vertical space between two paragraphs of text. WD_PAR_VSEP_WIDE = 8, ///< Large amount of vertical space between two paragraphs of text. }; @@ -509,6 +507,7 @@ public: void DrawWidgets() const; void DrawViewport() const; void DrawSortButtonState(int widget, SortButtonState state) const; + static int SortButtonWidth(); void DeleteChildWindows(WindowClass wc = WC_INVALID) const; |