aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_ttf.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-23 12:24:22 +0800
committerchai <chaifix@163.com>2018-11-23 12:24:22 +0800
commit8d4e45c9a85175d0fc37d7d5c49ff90abb01fe4f (patch)
tree4ca2d0b34366293ad57d77c64e753c9013ccdc21 /src/lua/modules/graphics/je_lua_ttf.cpp
parentcfa05003be67344fbc79c338c2ac82f0accd979d (diff)
*修改lua bind
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 fb4b0df..c3d9aae 100644
--- a/src/lua/modules/graphics/je_lua_ttf.cpp
+++ b/src/lua/modules/graphics/je_lua_ttf.cpp
@@ -44,7 +44,7 @@ namespace JinEngine
Text* text = pxyText->getObject<Text>();
page = ttf->typeset(*text, lineheight, spacing);
}
- Shared<Page>* refPage = new Shared<Page>(page, Jin_Lua_Page);
+ Shared<Page>* refPage = new Shared<Page>(L, page, Jin_Lua_Page);
refPage->setDependency((int)PageDependency::DEP_TTF, &shrTTF);
Proxy* pxyPage = luax_newinstance(L, Jin_Lua_Page, refPage);
return 1;