diff --git a/BizHawk.MultiClient/LuaImplementation.cs b/BizHawk.MultiClient/LuaImplementation.cs index 2b0fc107c0..81a52e22b8 100644 --- a/BizHawk.MultiClient/LuaImplementation.cs +++ b/BizHawk.MultiClient/LuaImplementation.cs @@ -476,6 +476,8 @@ namespace BizHawk.MultiClient "openhexeditor", "opentasstudio", "opencheats", + "screenwidth", + "screenheight", }; public static string[] FormsFunctions = new string[] @@ -1914,6 +1916,16 @@ namespace BizHawk.MultiClient //---------------------------------------------------- //Client library //---------------------------------------------------- + public int client_screenwidth() + { + return Global.RenderPanel.NativeSize.Width; + } + + public int client_screenheight() + { + return Global.RenderPanel.NativeSize.Height; + } + public void client_openrom(object lua_input) { Global.MainForm.LoadRom(lua_input.ToString());