MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetScreenGeometry

Method GetScreenGeometry

src/lua/LuaCallOuts.cpp:1236–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234//============================================================================//
1235
1236int LuaCallOuts::GetScreenGeometry(lua_State* L) {
1237 BzfDisplay* dpy = getDisplay();
1238 if (dpy == NULL) {
1239 return luaL_pushnil(L);
1240 }
1241 lua_pushinteger(L, dpy->getWidth());
1242 lua_pushinteger(L, dpy->getHeight());
1243 lua_pushinteger(L, 0);
1244 lua_pushinteger(L, 0);
1245 return 4;
1246}
1247
1248
1249int LuaCallOuts::GetWindowGeometry(lua_State* L) {

Callers

nothing calls this directly

Calls 5

luaL_pushnilFunction · 0.85
getDisplayFunction · 0.50
lua_pushintegerFunction · 0.50
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected