expose GetZoomNoResize to get the current flag value
This commit is contained in:
parent
8abe701be8
commit
19fce13489
1 changed files with 12 additions and 0 deletions
|
@ -266,6 +266,17 @@ static int CclSetZoomNoResize(lua_State *l)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int CclGetZoomNoResize(lua_State *l)
|
||||
{
|
||||
LuaCheckArgs(l, 0);
|
||||
#if defined(USE_OPENGL) || defined(USE_GLES)
|
||||
lua_pushboolean(l, ZoomNoResize);
|
||||
#else
|
||||
lua_pushboolean(l, 0);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
** Set the video resolution.
|
||||
**
|
||||
|
@ -1234,6 +1245,7 @@ void UserInterfaceCclRegister()
|
|||
lua_register(Lua, "SetUseOpenGL", CclSetUseOpenGL);
|
||||
lua_register(Lua, "GetUseOpenGL", CclGetUseOpenGL);
|
||||
lua_register(Lua, "SetZoomNoResize", CclSetZoomNoResize);
|
||||
lua_register(Lua, "GetZoomNoResize", CclGetZoomNoResize);
|
||||
lua_register(Lua, "SetVideoResolution", CclSetVideoResolution);
|
||||
lua_register(Lua, "GetVideoResolution", CclGetVideoResolution);
|
||||
lua_register(Lua, "SetVideoFullScreen", CclSetVideoFullScreen);
|
||||
|
|
Loading…
Reference in a new issue