From 717f63e8e2854261f04c2595463d7b110050b455 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 1 Nov 2006 12:03:27 +0000 Subject: [PATCH] fixes fs# 5938 - scrollbar with title enabled shows one less than it should git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11412 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gui/list.c b/apps/gui/list.c index de8f26b354..0653343604 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -356,7 +356,7 @@ void gui_list_draw(struct gui_list * gui_list) gui_scrollbar_draw(display, 0, y_start, SCROLLBAR_WIDTH-1, scrollbar_y_end - y_start, gui_list->nb_items, gui_list->start_item, - gui_list->start_item + display->nb_lines, VERTICAL); + gui_list->start_item + lines, VERTICAL); } #endif