From ed99b6eaffb253cd56e349e3ce68100647887b8c Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 18 Oct 2011 19:04:45 +0000 Subject: [PATCH] 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 --- apps/gui/skin_engine/skin_parser.c | 1 + 1 file changed, 1 insertion(+) 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)