From e299eb3ea36cba48875cf35bb1dcc93eaba0d279 Mon Sep 17 00:00:00 2001 From: Fred Bauer Date: Sat, 22 Oct 2011 17:13:33 +0000 Subject: Add functions font_set_ui() and font_get_ui(). The font returned by FONT_UI used to be fixed at zero but since buflib-fonts (r30589) can be different, depending on the order of loads and unloads. Fixes broken behavoir in virtual keyboard (FS#12336), lyrics player (FS#12306), and hopefully, FS#12337 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30826 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/gui/list.c') diff --git a/apps/gui/list.c b/apps/gui/list.c index f875a6559e..4a51bdace4 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -133,6 +133,7 @@ bool list_display_title(struct gui_synclist *list, enum screen_type screen) static int list_get_nb_lines(struct gui_synclist *list, enum screen_type screen) { struct viewport *vp = list->parent[screen]; + vp->line_height = font_get(vp->font)->height; int lines = skinlist_get_line_count(screen, list); if (lines < 0) { -- cgit v1.2.3