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:
parent
22eec9c4d7
commit
2799d55f4a
|
@ -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[]
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue