Skip to content

Commit

Permalink
gui1: Highlight currently-sorted column header even when not hovered
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Feb 16, 2014
1 parent 89f612a commit f8f9338
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/widgets/menu.cpp
Expand Up @@ -933,8 +933,12 @@ void menu::draw_row(const size_t row_index, const SDL_Rect& rect, ROW_TYPE type)

if(lang_rtl)
xpos -= widths[i];
if(type == HEADING_ROW && highlight_heading_ == int(i)) {
draw_solid_tinted_rectangle(xpos,rect.y,widths[i],rect.h,255,255,255,0.3,video().getSurface());
if(type == HEADING_ROW) {
if(highlight_heading_ == int(i)) {
draw_solid_tinted_rectangle(xpos,rect.y,widths[i],rect.h,255,255,255,0.3,video().getSurface());
} else if(sortby_ == int(i)) {
draw_solid_tinted_rectangle(xpos,rect.y,widths[i],rect.h,255,255,255,0.1,video().getSurface());
}
}

const int last_x = xpos;
Expand Down

0 comments on commit f8f9338

Please sign in to comment.