verified LockFont
This commit is contained in:
parent
d2d00236ca
commit
df4a39e690
1 changed files with 4 additions and 3 deletions
|
@ -2756,17 +2756,18 @@ static PointerId restoreCallback(int32 /*tag*/, PointerId ptr, RestoreSint32 /*s
|
|||
}
|
||||
|
||||
static void LockFont() {
|
||||
lua_Object param1;
|
||||
|
||||
param1 = lua_getparam(1);
|
||||
lua_Object param1 = lua_getparam(1);
|
||||
if (lua_isstring(param1)) {
|
||||
const char *fontName = lua_getstring(param1);
|
||||
Font *result = g_resourceloader->loadFont(fontName);
|
||||
if (result) {
|
||||
result->luaRef();
|
||||
lua_pushusertag(result, MKID_BE('FONT'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
lua_pushnil();
|
||||
}
|
||||
|
||||
static void EnableDebugKeys() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue