summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-10-18 19:04:45 +0000
committerThomas Martitz <kugel@rockbox.org>2011-10-18 19:04:45 +0000
commited99b6eaffb253cd56e349e3ce68100647887b8c (patch)
tree19ed491d6cba2853e1c473d0aba209d93b3c6650 /apps
parent0ab2c1b4c4455454d0639c8604417f026fbfd895 (diff)
downloadrockbox-ed99b6eaffb253cd56e349e3ce68100647887b8c.tar.gz
rockbox-ed99b6eaffb253cd56e349e3ce68100647887b8c.zip
Fix FS#12337. Skin viewports' line height was initialized with the UI font height.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30786 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/skin_engine/skin_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index f6b7ff3d3a..a6359b1956 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -1701,6 +1701,7 @@ static bool skin_load_fonts(struct wps_data *data)
/* finally, assign the font_id to the viewport */
vp->font = font->id;
+ vp->line_height = font_get(vp->font)->height;
}
data->font_ids = skin_buffer_alloc(font_count * sizeof(int));
if (!success || data->font_ids == NULL)