diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-06-03 04:06:58 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-06-03 04:06:58 +0000 |
| commit | 20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b (patch) | |
| tree | 5cec6923380fbfe9f61f227cf5c02c7ae733be4f | |
| parent | bbde44506b7c544b6b049f56fbb1c99c5d67660f (diff) | |
| download | rockbox-20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b.zip rockbox-20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b.tar.gz rockbox-20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b.tar.bz2 rockbox-20a8a9a3c8fefb38ba533e3a2a7e21d02e5b737b.tar.xz | |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index c15b1be..2393946 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; |