Now gui.drawNew and gui.drawFinish doesn't need to be invoked via Lua Scripts. However they are invoked every frame. Basically, this means that graphics are drawn and cleaned every frame. So, if you Pause/Stop a script, the graphics gets cleaned right away.

This commit is contained in:
Rolanmen1 2012-05-01 14:43:17 +00:00
parent 22eec9c4d7
commit 2799d55f4a
2 changed files with 2 additions and 3 deletions

View File

@ -251,8 +251,6 @@ namespace BizHawk.MultiClient
"text",
"alert",
"cleartext",
"drawNew",
"drawFinish",
"drawPixel",
"drawLine",
"drawRectangle",
@ -262,7 +260,6 @@ namespace BizHawk.MultiClient
"drawPie",
"drawIcon",
"drawImage",
"clearGraphics",
};
public static string[] EmuFunctions = new string[]

View File

@ -842,6 +842,7 @@ namespace BizHawk.MultiClient
{
try
{
LuaImp.gui_drawNew();
if (s.Enabled && s.Thread != null && !s.Paused)
{
bool prohibit = false;
@ -852,6 +853,7 @@ namespace BizHawk.MultiClient
var result = LuaImp.ResumeScript(s.Thread);
s.FrameWaiting = result.WaitForFrame;
}
LuaImp.gui_drawFinish();
}
catch (Exception ex)
{