diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-05-29 12:28:02 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-05-29 12:28:02 +0000 |
commit | 20202017f4c2a004ddeb62fc501f74232ed7e0b8 (patch) | |
tree | 0dc813786c255981b2a0f8d1631700c3165fc6ed /apps | |
parent | 195ac1229639353a34aa62ee93fcc69e9ef885ab (diff) |
Really fix FS#7230 this time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13513 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/list.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 9b4211cd48..da79a69a0f 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -525,9 +525,11 @@ static void gui_list_select_at_offset(struct gui_list * gui_list, int offset) } else { - gui_list->selected_item = gui_list->nb_items - 1; + gui_list->selected_item = gui_list->nb_items - + gui_list->selected_size; if (gui_list->nb_items >= nb_lines ) - gui_list->start_item = gui_list->selected_item - nb_lines + 1; + gui_list->start_item = gui_list->selected_item - + nb_lines + gui_list->selected_size; } return; } |