LuaBox
Loading...
Searching...
No Matches
DisplaySize.h
Go to the documentation of this file.
1#pragma once
2
3#include "lua_include.h"
4#include "global.h"
5
13
14int DisplaySize(lua_State* L)
15{
16 lua_newtable(L);
17
18 lua_pushstring(L, "x");
19 lua_pushinteger(L, tft.width());
20 lua_settable(L, -3);
21
22 lua_pushstring(L, "y");
23 lua_pushinteger(L, tft.height());
24 lua_settable(L, -3);
25
26 return 1;
27}
int DisplaySize(lua_State *L)
Get the current display size.
Definition DisplaySize.h:14