summaryrefslogtreecommitdiff
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-05-11 14:08:46 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-05-11 14:08:46 +0000
commit95be4febc87ab103d77ed41b2594691ae4f9f0ee (patch)
tree47c31e72f01754da23f09185d9e683b744999c2e /apps/gui/list.c
parentaff220c9f50229be955878d603d4c05df65fc605 (diff)
downloadrockbox-95be4febc87ab103d77ed41b2594691ae4f9f0ee.tar.gz
rockbox-95be4febc87ab103d77ed41b2594691ae4f9f0ee.zip
doh! fix yellow.
remove the calls to stop_scroll(), clear_viewport() does that nothing should be using screens[].nb_lines anymore... change the list code to be a good example. (playlist_viewer is the last thing using it which needs fixing) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17456 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 7adb83eb97..288c18ab1c 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -483,13 +483,15 @@ void gui_synclist_set_color_callback(struct gui_synclist * lists,
483static void gui_synclist_select_next_page(struct gui_synclist * lists, 483static void gui_synclist_select_next_page(struct gui_synclist * lists,
484 enum screen_type screen) 484 enum screen_type screen)
485{ 485{
486 gui_list_select_at_offset(lists, screens[screen].nb_lines); 486 int nb_lines = viewport_get_nb_lines(lists->parent[screen]);
487 gui_list_select_at_offset(lists, nb_lines);
487} 488}
488 489
489static void gui_synclist_select_previous_page(struct gui_synclist * lists, 490static void gui_synclist_select_previous_page(struct gui_synclist * lists,
490 enum screen_type screen) 491 enum screen_type screen)
491{ 492{
492 gui_list_select_at_offset(lists, -screens[screen].nb_lines); 493 int nb_lines = viewport_get_nb_lines(lists->parent[screen]);
494 gui_list_select_at_offset(lists, -nb_lines);
493} 495}
494 496
495void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll) 497void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll)