From e1bc01ce6948283930f7f29a640a91a27a29c997 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 4 Dec 2018 14:10:29 +0800 Subject: =?UTF-8?q?*=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/je_lua_texture_font.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lua/modules/graphics/je_lua_texture_font.cpp') diff --git a/src/lua/modules/graphics/je_lua_texture_font.cpp b/src/lua/modules/graphics/je_lua_texture_font.cpp index eee134c..afabf18 100644 --- a/src/lua/modules/graphics/je_lua_texture_font.cpp +++ b/src/lua/modules/graphics/je_lua_texture_font.cpp @@ -44,9 +44,9 @@ namespace JinEngine Text* text = p2->getObject(); page = tf->typeset(*text, lineheight, spacing); } - Shared* shrPage = new Shared(L, page, Jin_Lua_Page); - shrPage->setDependency((int)PageDependency::DEP_TEXTURE_FONT, &shrTexFont); - LuaObject* pxyPage = luax_newinstance(L, Jin_Lua_Page, shrPage); + Shared* shrPage = new Shared(page, Jin_Lua_Page); + LuaObject* luaPage = luax_newinstance(L, Jin_Lua_Page, shrPage); + luaPage->setDependency((int)PageDependency::DEP_TEXTURE_FONT, &shrTexFont); return 1; } -- cgit v1.1-26-g67d0