summaryrefslogtreecommitdiffstats
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-02-26 06:45:50 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-02-26 06:45:50 +0000
commit321148124a8c23c61c0784dac858e78e1c9e0ff2 (patch)
treee32cb0c07171b45db76f32dcd7d46e2259aace7f /apps/gui/list.c
parentcf6be66db61f679185ae38f0f9267717f26120c7 (diff)
downloadrockbox-321148124a8c23c61c0784dac858e78e1c9e0ff2.tar.gz
rockbox-321148124a8c23c61c0784dac858e78e1c9e0ff2.tar.bz2
rockbox-321148124a8c23c61c0784dac858e78e1c9e0ff2.zip
Fix the list showing an empty line at the bottom if the sbs is handling the title
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24919 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index ccb51959ff..25a793810e 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -112,7 +112,8 @@ static struct viewport parent[NB_SCREENS] =
#ifdef HAVE_LCD_BITMAP
bool list_display_title(struct gui_synclist *list, enum screen_type screen)
{
- return list->title != NULL &&
+ return list->title != NULL &&
+ !sb_set_title_text(list->title, list->title_icon, screen) &&
viewport_get_nb_lines(list->parent[screen]) > 2;
}