mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Provide font_lock(). Font_get_bits() or ..width() may have to read glyph cache misses from disk so provide a means to lock the buflib memory during the wait.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30814 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d228d4d130
commit
04a015dde0
3 changed files with 13 additions and 0 deletions
|
@ -101,6 +101,7 @@ void LCDFN(fill_viewport)(void)
|
|||
static void LCDFN(putsxyofs)(int x, int y, int ofs, const unsigned char *str)
|
||||
{
|
||||
unsigned short *ucs;
|
||||
font_lock(current_vp->font, true);
|
||||
struct font* pf = font_get(current_vp->font);
|
||||
int vp_flags = current_vp->flags;
|
||||
int rtl_next_non_diac_width, last_non_diacritic_width;
|
||||
|
@ -233,6 +234,7 @@ static void LCDFN(putsxyofs)(int x, int y, int ofs, const unsigned char *str)
|
|||
}
|
||||
}
|
||||
}
|
||||
font_lock(current_vp->font, false);
|
||||
}
|
||||
|
||||
/* put a string at a given pixel position */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue