diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-18 10:36:55 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-18 10:36:55 +0000 |
commit | 04da1e1d456322d07e941ca19d35e9dc1020faf1 (patch) | |
tree | 4a7f2fbd16bbc5ad48c890141c722273c2efea2e /src/station_gui.cpp | |
parent | bba1a62db1d9dc233e57c34d639109f03d060a2b (diff) | |
download | openttd-04da1e1d456322d07e941ca19d35e9dc1020faf1.tar.xz |
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 71d1fdd3c..24cf2ece3 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -344,7 +344,7 @@ static void PlayerStationsWndProc(Window *w, WindowEvent *e) DrawWindowWidgets(w); /* draw arrow pointing up/down for ascending/descending sorting */ - DoDrawString(sl->flags & SL_ORDER ? DOWNARROW : UPARROW, 69, 26, TC_BLACK); + DrawSortButtonState(w, SLW_SORTBY, sl->flags & SL_ORDER ? SBS_DOWN : SBS_UP); int cg_ofst; int x = 89; |