From 6fd3d96309f73e31168a900e592f5d94231762a4 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 29 May 2007 13:06:41 +0000 Subject: fix selection wierdness when scrolling down at the end of lists git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13514 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/list.c b/apps/gui/list.c index da79a69a0f..c5acfbb831 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -172,11 +172,8 @@ static void gui_list_put_selection_in_screen(struct gui_list * gui_list, if(put_from_end) { int list_end = gui_list->selected_item + SCROLL_LIMIT; - - if(list_end-1 == gui_list->nb_items) - list_end--; - if(list_end > gui_list->nb_items) - list_end = nb_lines; + if(list_end >= gui_list->nb_items) + list_end = gui_list->nb_items; gui_list->start_item = list_end - nb_lines; } else -- cgit v1.2.3