diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 467bebddd5..86ef97cf4d 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -310,7 +310,7 @@ static void gui_list_draw_smart(struct gui_list *gui_list) | |||
310 | } | 310 | } |
311 | 311 | ||
312 | #ifdef HAVE_LCD_COLOR | 312 | #ifdef HAVE_LCD_COLOR |
313 | unsigned char cur_line = 1; | 313 | unsigned char cur_line = 0; |
314 | #endif | 314 | #endif |
315 | for (i = start; i < end; i++) | 315 | for (i = start; i < end; i++) |
316 | { | 316 | { |
@@ -379,9 +379,9 @@ static void gui_list_draw_smart(struct gui_list *gui_list) | |||
379 | 379 | ||
380 | /* Make the lcd driver know how many lines the gradient should | 380 | /* Make the lcd driver know how many lines the gradient should |
381 | cover and current line number */ | 381 | cover and current line number */ |
382 | /* max line number*/ | 382 | /* number of selected lines */ |
383 | style |= MAXLN_PACK(gui_list->selected_size); | 383 | style |= NUMLN_PACK(gui_list->selected_size); |
384 | /* current line number */ | 384 | /* current line number, zero based */ |
385 | style |= CURLN_PACK(cur_line); | 385 | style |= CURLN_PACK(cur_line); |
386 | cur_line++; | 386 | cur_line++; |
387 | } | 387 | } |