summaryrefslogtreecommitdiffstats
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-05-22 06:23:15 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-05-22 06:23:15 +0000
commit32db049a2adb032e8abe7b63b50543a30589b214 (patch)
tree9ed37154619d1d35f5aef5c1cad6f512f1e55544 /apps/gui/list.c
parent5348f3d94985de1d1e985a7a631fd2c7d0dcf1f3 (diff)
downloadrockbox-32db049a2adb032e8abe7b63b50543a30589b214.tar.gz
rockbox-32db049a2adb032e8abe7b63b50543a30589b214.tar.bz2
rockbox-32db049a2adb032e8abe7b63b50543a30589b214.zip
fix FS#9020 and make scrolling down in lists a bit more consistant with scrolling up
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17602 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 1c1bc41f4f..ba25efdb44 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -274,7 +274,7 @@ static void gui_list_put_selection_on_screen(struct gui_synclist * gui_list,
}
else
{
- int top_of_screen = gui_list->selected_item - SCROLL_LIMIT;
+ int top_of_screen = gui_list->selected_item - SCROLL_LIMIT + 1;
int temp = MIN(top_of_screen, gui_list->nb_items - nb_lines);
gui_list->start_item[screen] = MAX(0, temp);
}