aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_ttf.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-11 20:18:26 +0800
committerchai <chaifix@163.com>2018-11-11 20:18:26 +0800
commit7c2f33bdf37de7acf9b0728a115377081344db1c (patch)
treecd82766dd4d1d84229ae610e69225bb48b3001b9 /src/lua/modules/graphics/je_lua_ttf.cpp
parente92caa97329016d012b46b9d37e1b2c3b613a8f2 (diff)
*格式化
Diffstat (limited to 'src/lua/modules/graphics/je_lua_ttf.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_ttf.cpp2
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 */