mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Make the "current line" value in the gradient style code zero-based, and an attempt at more understandable names and better comments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15886 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
307b8f1b95
commit
485bbbdb30
3 changed files with 21 additions and 18 deletions
|
|
@ -310,7 +310,7 @@ static void gui_list_draw_smart(struct gui_list *gui_list)
|
|||
}
|
||||
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
unsigned char cur_line = 1;
|
||||
unsigned char cur_line = 0;
|
||||
#endif
|
||||
for (i = start; i < end; i++)
|
||||
{
|
||||
|
|
@ -379,9 +379,9 @@ static void gui_list_draw_smart(struct gui_list *gui_list)
|
|||
|
||||
/* Make the lcd driver know how many lines the gradient should
|
||||
cover and current line number */
|
||||
/* max line number*/
|
||||
style |= MAXLN_PACK(gui_list->selected_size);
|
||||
/* current line number */
|
||||
/* number of selected lines */
|
||||
style |= NUMLN_PACK(gui_list->selected_size);
|
||||
/* current line number, zero based */
|
||||
style |= CURLN_PACK(cur_line);
|
||||
cur_line++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue