diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-24 13:19:34 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-24 13:19:34 +0000 |
| commit | aa0f4a4bbe370032d8166628f456709be1330118 (patch) | |
| tree | 597c91fb16493881d7a281ef3c28e274a899022b /apps/plugins/lua | |
| parent | f323300b82aa945dd4cadb20d8d7e23a6602ef49 (diff) | |
| download | rockbox-aa0f4a4bbe370032d8166628f456709be1330118.zip rockbox-aa0f4a4bbe370032d8166628f456709be1330118.tar.gz rockbox-aa0f4a4bbe370032d8166628f456709be1330118.tar.bz2 rockbox-aa0f4a4bbe370032d8166628f456709be1330118.tar.xz | |
FS#12273 - use buflib for font storage. thanks to the testers :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30589 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua')
| -rw-r--r-- | apps/plugins/lua/rocklib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index 4657201..ddd4081 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c @@ -433,6 +433,11 @@ RB_WRAP(font_getstringsize) int fontnumber = luaL_checkint(L, 2); int w, h; + if (fontnumber == FONT_UI) + fontnumber = rb->global_status->font_id[SCREEN_MAIN]; + else + fontnumber = FONT_SYSFIXED; + int result = rb->font_getstringsize(str, &w, &h, fontnumber); lua_pushinteger(L, result); lua_pushinteger(L, w); |