diff options
author | chai <chaifix@163.com> | 2018-11-11 20:18:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-11 20:18:26 +0800 |
commit | 7c2f33bdf37de7acf9b0728a115377081344db1c (patch) | |
tree | cd82766dd4d1d84229ae610e69225bb48b3001b9 /src/lua/modules/graphics/je_lua_texture_font.cpp | |
parent | e92caa97329016d012b46b9d37e1b2c3b613a8f2 (diff) |
*格式化
Diffstat (limited to 'src/lua/modules/graphics/je_lua_texture_font.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_texture_font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/modules/graphics/je_lua_texture_font.cpp b/src/lua/modules/graphics/je_lua_texture_font.cpp index 58011a7..dbaa997 100644 --- a/src/lua/modules/graphics/je_lua_texture_font.cpp +++ b/src/lua/modules/graphics/je_lua_texture_font.cpp @@ -39,7 +39,7 @@ namespace JinEngine Text* text = p2->getObject<Text>(); page = tf->typeset(*text, lineheight, spacing); } - Proxy* proxy = (Proxy*)luax_newinstance(L, JIN_GRAPHICS_PAGE, sizeof(Proxy)); + Proxy* proxy = luax_newinstance(L, JIN_GRAPHICS_PAGE); Shared<Page>* refPage = new Shared<Page>(page, JIN_GRAPHICS_PAGE); { /* retain related ttf */ |