Accept and Fix FS#8427 - problem with empty screens in lists with pages scrolling enabled

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16023 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-01-08 08:12:32 +00:00
parent 3646c31367
commit b684b82fd0
2 changed files with 2 additions and 1 deletions

View file

@ -499,7 +499,7 @@ static void gui_list_put_selection_on_screen(struct gui_synclist * gui_list,
if (global_settings.scroll_paginated) if (global_settings.scroll_paginated)
{ {
if (gui_list->start_item[screen] > gui_list->selected_item) if (gui_list->start_item[screen] > gui_list->selected_item)
gui_list->start_item[screen] = MAX(0, gui_list->start_item[screen] - nb_lines); gui_list->start_item[screen] = (gui_list->selected_item/nb_lines)*nb_lines;
} }
else else
{ {

View file

@ -360,6 +360,7 @@ Robert Menes
Henri Valta Henri Valta
Melba Sitjar Melba Sitjar
Mehmet Ş. Çatalbaş Mehmet Ş. Çatalbaş
Scott Tinman
The libmad team The libmad team
The wavpack team The wavpack team