From b684b82fd01074a5305bfa146518ec9bf55b543d Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 8 Jan 2008 08:12:32 +0000 Subject: [PATCH] Accept and Fix FS#8427 - problem with empty screens in lists with pages scrolling enabled git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16023 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 2 +- docs/CREDITS | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/gui/list.c b/apps/gui/list.c index fbb7508779..5ae400e24a 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -499,7 +499,7 @@ static void gui_list_put_selection_on_screen(struct gui_synclist * gui_list, if (global_settings.scroll_paginated) { if (gui_list->start_item[screen] > gui_list->selected_item) - gui_list->start_item[screen] = MAX(0, gui_list->start_item[screen] - nb_lines); + gui_list->start_item[screen] = (gui_list->selected_item/nb_lines)*nb_lines; } else { diff --git a/docs/CREDITS b/docs/CREDITS index b41acad3fc..5d2ae58fdf 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -360,6 +360,7 @@ Robert Menes Henri Valta Melba Sitjar Mehmet Ş. Çatalbaş +Scott Tinman The libmad team The wavpack team