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_ttf.cpp | |
parent | e92caa97329016d012b46b9d37e1b2c3b613a8f2 (diff) |
*格式化
Diffstat (limited to 'src/lua/modules/graphics/je_lua_ttf.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_ttf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/modules/graphics/je_lua_ttf.cpp b/src/lua/modules/graphics/je_lua_ttf.cpp index 4c56ae1..3e6050b 100644 --- a/src/lua/modules/graphics/je_lua_ttf.cpp +++ b/src/lua/modules/graphics/je_lua_ttf.cpp @@ -45,7 +45,7 @@ namespace JinEngine Text* text = p2->getObject<Text>(); page = ttf->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 */ |