forked from len0rd/rockbox
change get_glyph_size() to font_glyphs_to_bufsize(). fixes a bug when font glyph buffer < font header
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27911 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aaa864ea03
commit
cf8f526d16
3 changed files with 10 additions and 6 deletions
|
@ -96,7 +96,7 @@ int skin_font_load(char* font_name, int glyphs)
|
|||
if (!glyphs)
|
||||
glyphs = GLYPHS_TO_CACHE;
|
||||
#ifndef __PCTOOL__
|
||||
skin_font_size = glyphs * get_glyph_size(filename);
|
||||
skin_font_size = font_glyphs_to_bufsize(filename, glyphs);
|
||||
#endif
|
||||
if ( !skin_font_size )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue