summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-06-03 04:06:58 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-06-03 04:06:58 +0000
commit20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b (patch)
tree5cec6923380fbfe9f61f227cf5c02c7ae733be4f
parentbbde44506b7c544b6b049f56fbb1c99c5d67660f (diff)
downloadrockbox-20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b.tar.gz
rockbox-20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b.zip
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
-rw-r--r--apps/gui/list.c4
1 files changed, 4 insertions, 0 deletions
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,
186 list_end = gui_list->nb_items; 186 list_end = gui_list->nb_items;
187 gui_list->start_item = list_end - nb_lines; 187 gui_list->start_item = list_end - nb_lines;
188 } 188 }
189 else if (gui_list->nb_items-gui_list->selected_item < nb_lines)
190 {
191 gui_list->start_item = gui_list->nb_items - nb_lines;
192 }
189 else 193 else
190 { 194 {
191 int list_start = gui_list->selected_item - SCROLL_LIMIT - 1; 195 int list_start = gui_list->selected_item - SCROLL_LIMIT - 1;