summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-05-30 09:11:59 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-05-30 09:11:59 +0000
commit0178568325c5e012a5ad27b7df6b4b6e2abe9586 (patch)
tree0873ebbb4990712e2d2127a22e8f321f02dc2b45
parent5983e7fa42ac26cef567b123104570054f5ca72a (diff)
fix non-paged scrolling aroun the ends of lists
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13522 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 1764ba48eb..e27aadb636 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -173,7 +173,8 @@ static void gui_list_put_selection_in_screen(struct gui_list * gui_list,
{
gui_list->start_item = 0;
}
- else if (gui_list->nb_items - gui_list->selected_item < nb_lines)
+ else if (global_settings.scroll_paginated &&
+ gui_list->nb_items - gui_list->selected_item < nb_lines)
{
gui_list->start_item = gui_list->nb_items - nb_lines;
}