| 1234 | //============================================================================// |
| 1235 | |
| 1236 | int 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 | |
| 1249 | int LuaCallOuts::GetWindowGeometry(lua_State* L) { |
nothing calls this directly
no test coverage detected