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
This commit is contained in:
Thomas Martitz 2011-10-18 19:04:45 +00:00
parent 0ab2c1b4c4
commit ed99b6eaff

View file

@ -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)