aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_ttf_data.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-04 14:10:29 +0800
committerchai <chaifix@163.com>2018-12-04 14:10:29 +0800
commite1bc01ce6948283930f7f29a640a91a27a29c997 (patch)
tree10620e2107f5e3df96a61516090347b950c58a74 /src/lua/modules/graphics/je_lua_ttf_data.cpp
parentf439c73308774d39cc9647ebfeedcf52b2111fed (diff)
*格式化代码
Diffstat (limited to 'src/lua/modules/graphics/je_lua_ttf_data.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_ttf_data.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/modules/graphics/je_lua_ttf_data.cpp b/src/lua/modules/graphics/je_lua_ttf_data.cpp
index 207dde2..a4e8d2c 100644
--- a/src/lua/modules/graphics/je_lua_ttf_data.cpp
+++ b/src/lua/modules/graphics/je_lua_ttf_data.cpp
@@ -22,9 +22,9 @@ namespace JinEngine
Shared<TTFData>& shrFontData = pxyTTFData->getShared<TTFData>();
TTFData* fontData = shrFontData.getObject();
TTF* font = fontData->createTTF(fontsize);
- Shared<TTF>* shrTTF = new Shared<TTF>(L, font, Jin_Lua_TTF);
- shrTTF->setDependency((int)TTFDependency::DEP_TTFDATA, &shrFontData);
- LuaObject* pxyTTF = luax_newinstance(L, Jin_Lua_TTF, shrTTF);
+ Shared<TTF>* shrTTF = new Shared<TTF>(font, Jin_Lua_TTF);
+ LuaObject* luaTTF = luax_newinstance(L, Jin_Lua_TTF, shrTTF);
+ luaTTF->setDependency((int)TTFDependency::DEP_TTFDATA, &shrFontData);
return 1;
}