From 20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 3 Jun 2007 04:06:58 +0000 Subject: [PATCH] Move the old api out of the core and into the plugin lib. ew plugins shuold use the new api and not this one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13537 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/gui/list.c b/apps/gui/list.c index c15b1beac1..23939469c5 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -186,6 +186,10 @@ static void gui_list_put_selection_in_screen(struct gui_list * gui_list, list_end = gui_list->nb_items; gui_list->start_item = list_end - nb_lines; } + else if (gui_list->nb_items-gui_list->selected_item < nb_lines) + { + gui_list->start_item = gui_list->nb_items - nb_lines; + } else { int list_start = gui_list->selected_item - SCROLL_LIMIT - 1;