diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-10-18 19:04:45 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-10-18 19:04:45 +0000 |
commit | ed99b6eaffb253cd56e349e3ce68100647887b8c (patch) | |
tree | 19ed491d6cba2853e1c473d0aba209d93b3c6650 | |
parent | 0ab2c1b4c4455454d0639c8604417f026fbfd895 (diff) | |
download | rockbox-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
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 1 |
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) | |||
1701 | 1701 | ||
1702 | /* finally, assign the font_id to the viewport */ | 1702 | /* finally, assign the font_id to the viewport */ |
1703 | vp->font = font->id; | 1703 | vp->font = font->id; |
1704 | vp->line_height = font_get(vp->font)->height; | ||
1704 | } | 1705 | } |
1705 | data->font_ids = skin_buffer_alloc(font_count * sizeof(int)); | 1706 | data->font_ids = skin_buffer_alloc(font_count * sizeof(int)); |
1706 | if (!success || data->font_ids == NULL) | 1707 | if (!success || data->font_ids == NULL) |