From 221cae987f10cf5a7bf5c36faee80be6754e2422 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Wed, 29 Jul 2009 13:45:10 +0000 Subject: fix page up/down in list (FS# 10435). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22082 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'apps/gui/list.c') diff --git a/apps/gui/list.c b/apps/gui/list.c index 9d82d88c81..eb9c025a95 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -485,6 +485,10 @@ static void gui_synclist_select_next_page(struct gui_synclist * lists, enum screen_type screen) { int nb_lines = viewport_get_nb_lines(lists->parent[screen]); +#ifdef HAVE_LCD_BITMAP + if(list_display_title(lists, screen)) + nb_lines--; +#endif gui_list_select_at_offset(lists, nb_lines); } @@ -492,6 +496,10 @@ static void gui_synclist_select_previous_page(struct gui_synclist * lists, enum screen_type screen) { int nb_lines = viewport_get_nb_lines(lists->parent[screen]); +#ifdef HAVE_LCD_BITMAP + if(list_display_title(lists, screen)) + nb_lines--; +#endif gui_list_select_at_offset(lists, -nb_lines); } @@ -942,10 +950,3 @@ void simplelist_info_init(struct simplelist_info *info, char* title, info->get_talk = NULL; info->callback_data = data; } - - - - - - - -- cgit v1.2.3