diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2009-07-29 13:45:10 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2009-07-29 13:45:10 +0000 |
commit | 221cae987f10cf5a7bf5c36faee80be6754e2422 (patch) | |
tree | 431491958f84c86e094f9b21a5343f188d97057c | |
parent | f495488b08f802d9e4d957ea4499d8977c8bdccc (diff) | |
download | rockbox-221cae987f10cf5a7bf5c36faee80be6754e2422.tar.gz rockbox-221cae987f10cf5a7bf5c36faee80be6754e2422.zip |
fix page up/down in list (FS# 10435).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22082 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/gui/list.c | 15 |
1 files changed, 8 insertions, 7 deletions
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; } - - - - - - - |