forked from len0rd/rockbox
Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30753 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
de3e2e7efc
commit
08979ba835
1 changed files with 3 additions and 5 deletions
|
|
@ -345,10 +345,8 @@ static struct font* font_load_cached(struct font* pf)
|
||||||
return pf;
|
return pf;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool internal_load_font(int font_id, const char *path,
|
static bool internal_load_font(const char *path, char *buf,
|
||||||
char *buf, size_t buf_size,
|
size_t buf_size, int handle)
|
||||||
int handle
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
size_t size;
|
size_t size;
|
||||||
struct font* pf = pf_from_handle(handle);
|
struct font* pf = pf_from_handle(handle);
|
||||||
|
|
@ -520,7 +518,7 @@ int font_load_ex(const char *path, size_t buffer_size)
|
||||||
buffer = buffer_from_handle(handle);
|
buffer = buffer_from_handle(handle);
|
||||||
lock_font_handle(handle, true);
|
lock_font_handle(handle, true);
|
||||||
|
|
||||||
if (!internal_load_font(font_id, path, buffer, buffer_size, handle))
|
if (!internal_load_font(path, buffer, buffer_size, handle))
|
||||||
{
|
{
|
||||||
lock_font_handle(handle, false);
|
lock_font_handle(handle, false);
|
||||||
core_free(handle);
|
core_free(handle);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue