forked from len0rd/rockbox
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:
parent
0ab2c1b4c4
commit
ed99b6eaff
1 changed files with 1 additions and 0 deletions
|
@ -1701,6 +1701,7 @@ static bool skin_load_fonts(struct wps_data *data)
|
||||||
|
|
||||||
/* finally, assign the font_id to the viewport */
|
/* finally, assign the font_id to the viewport */
|
||||||
vp->font = font->id;
|
vp->font = font->id;
|
||||||
|
vp->line_height = font_get(vp->font)->height;
|
||||||
}
|
}
|
||||||
data->font_ids = skin_buffer_alloc(font_count * sizeof(int));
|
data->font_ids = skin_buffer_alloc(font_count * sizeof(int));
|
||||||
if (!success || data->font_ids == NULL)
|
if (!success || data->font_ids == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue