forked from len0rd/rockbox
fix "off-by-one" bug in paginated scrolling with the title
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10589 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b9fb0e81f1
commit
599fa9a627
1 changed files with 3 additions and 4 deletions
|
|
@ -377,11 +377,11 @@ void gui_list_select_next(struct gui_list * gui_list)
|
|||
|
||||
void gui_list_select_previous(struct gui_list * gui_list)
|
||||
{
|
||||
int nb_lines = gui_list->display->nb_lines;
|
||||
if (gui_list->title)
|
||||
nb_lines--;
|
||||
if( gui_list->selected_item-gui_list->selected_size < 0 )
|
||||
{
|
||||
int nb_lines = gui_list->display->nb_lines;
|
||||
if (gui_list->title)
|
||||
nb_lines--;
|
||||
if(gui_list->limit_scroll)
|
||||
return;
|
||||
/* we have aleady reached the top of the list */
|
||||
|
|
@ -396,7 +396,6 @@ void gui_list_select_previous(struct gui_list * gui_list)
|
|||
else
|
||||
{
|
||||
int item_pos;
|
||||
int nb_lines = gui_list->display->nb_lines;
|
||||
gui_list->selected_item-=gui_list->selected_size;
|
||||
item_pos = gui_list->selected_item - gui_list->start_item;
|
||||
if (global_settings.scroll_paginated)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue