summaryrefslogtreecommitdiff
path: root/apps/gui
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/gui
parent307b8f1b95e59b06821b1ebf3aa0e411fbf1ec24 (diff)
downloadrockbox-485bbbdb309f0c343b5d37eb99a453de8116281a.tar.gz
rockbox-485bbbdb309f0c343b5d37eb99a453de8116281a.zip
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/gui')
-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 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 }