diff options
author | Fred Bauer <fred.w.bauer@gmail.com> | 2011-10-22 17:13:33 +0000 |
---|---|---|
committer | Fred Bauer <fred.w.bauer@gmail.com> | 2011-10-22 17:13:33 +0000 |
commit | e299eb3ea36cba48875cf35bb1dcc93eaba0d279 (patch) | |
tree | a2d9e853522207fae414d82c9f5e6dba81252ea4 /apps/gui | |
parent | 4d2ab32339fb8e7c02841e52d35498081503d188 (diff) | |
download | rockbox-e299eb3ea36cba48875cf35bb1dcc93eaba0d279.tar.gz rockbox-e299eb3ea36cba48875cf35bb1dcc93eaba0d279.zip |
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
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/list.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
133 | static int list_get_nb_lines(struct gui_synclist *list, enum screen_type screen) | 133 | static int list_get_nb_lines(struct gui_synclist *list, enum screen_type screen) |
134 | { | 134 | { |
135 | struct viewport *vp = list->parent[screen]; | 135 | struct viewport *vp = list->parent[screen]; |
136 | vp->line_height = font_get(vp->font)->height; | ||
136 | int lines = skinlist_get_line_count(screen, list); | 137 | int lines = skinlist_get_line_count(screen, list); |
137 | if (lines < 0) | 138 | if (lines < 0) |
138 | { | 139 | { |