From 68707808c015db1cda0723882ffce99977d4593c Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 18 Jan 2008 10:36:55 +0000 Subject: (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. --- src/misc_gui.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index f32a9902b..8ef6d5f3f 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1505,11 +1505,7 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e) } GfxFillRect(w->widget[7].left + 1, w->widget[7].top + 1, w->widget[7].right, w->widget[7].bottom, 0xD7); - DoDrawString( - _savegame_sort_order & SORT_DESCENDING ? DOWNARROW : UPARROW, - _savegame_sort_order & SORT_BY_NAME ? w->widget[2].right - 9 : w->widget[3].right - 9, - 15, TC_BLACK - ); + DrawSortButtonState(w, _savegame_sort_order & SORT_BY_NAME ? 2 : 3, _savegame_sort_order & SORT_DESCENDING ? SBS_DOWN : SBS_UP); y = w->widget[7].top + 1; for (pos = w->vscroll.pos; pos < _fios_num; pos++) { -- cgit v1.2.3-54-g00ecf