mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
Bugfix lua font_getstringsize ignoring supplied fontid
Change-Id: I62c334300f427670b237957553176302a8589fe7
This commit is contained in:
parent
b9ca4ba456
commit
2398616d63
1 changed files with 1 additions and 1 deletions
|
|
@ -1606,7 +1606,7 @@ RB_WRAP(font_getstringsize)
|
|||
|
||||
if (fontnumber == FONT_UI)
|
||||
fontnumber = rb->global_status->font_id[SCREEN_MAIN];
|
||||
else
|
||||
else if (fontnumber < 0)
|
||||
fontnumber = FONT_SYSFIXED;
|
||||
|
||||
if lua_isnoneornil(L, 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue