aboutsummaryrefslogtreecommitdiff
path: root/src/libjin-lua/modules/graphics/je_lua_page.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-22 10:58:06 +0800
committerchai <chaifix@163.com>2018-12-22 10:58:06 +0800
commit6cb616689535c340b0b4f441c12ef8eb1ee42cb0 (patch)
tree1013294d114d18fd10f363e4645d421e7efbd285 /src/libjin-lua/modules/graphics/je_lua_page.cpp
parent71416cb4b388956d6132f6c8b5b77b0fb38b7a27 (diff)
*修改vector访问方式
Diffstat (limited to 'src/libjin-lua/modules/graphics/je_lua_page.cpp')
-rw-r--r--src/libjin-lua/modules/graphics/je_lua_page.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libjin-lua/modules/graphics/je_lua_page.cpp b/src/libjin-lua/modules/graphics/je_lua_page.cpp
index 5a312e2..8b4043e 100644
--- a/src/libjin-lua/modules/graphics/je_lua_page.cpp
+++ b/src/libjin-lua/modules/graphics/je_lua_page.cpp
@@ -31,22 +31,22 @@ namespace JinEngine
LUA_IMPLEMENT int l_getSize(lua_State* L)
{
Page* page = getPage(L);
- luax_pushinteger(L, page->size.w);
- luax_pushinteger(L, page->size.h);
+ luax_pushinteger(L, page->size.w());
+ luax_pushinteger(L, page->size.h());
return 2;
}
LUA_IMPLEMENT int l_getWidth(lua_State* L)
{
Page* page = getPage(L);
- luax_pushinteger(L, page->size.w);
+ luax_pushinteger(L, page->size.w());
return 1;
}
LUA_IMPLEMENT int l_getHeight(lua_State* L)
{
Page* page = getPage(L);
- luax_pushinteger(L, page->size.h);
+ luax_pushinteger(L, page->size.h());
return 1;
}