summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-12-06 17:09:24 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-12-06 17:09:24 +0000
commit485bbbdb309f0c343b5d37eb99a453de8116281a (patch)
treead92203389d73f51ac504f0f899c7ebddbb1257d /apps
parent307b8f1b95e59b06821b1ebf3aa0e411fbf1ec24 (diff)
downloadrockbox-485bbbdb309f0c343b5d37eb99a453de8116281a.zip
rockbox-485bbbdb309f0c343b5d37eb99a453de8116281a.tar.gz
rockbox-485bbbdb309f0c343b5d37eb99a453de8116281a.tar.bz2
rockbox-485bbbdb309f0c343b5d37eb99a453de8116281a.tar.xz
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
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 467bebd..86ef97c 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)
}
#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++;
}