when toggling a script on, update on screen lua drawing stuff. On gui.clearGraphics() immediate update the screen

This commit is contained in:
adelikat 2017-02-04 15:54:04 -06:00
parent 3b197b8fdf
commit 0480ea3f44
2 changed files with 8 additions and 0 deletions

View File

@ -153,6 +153,7 @@ namespace BizHawk.Client.EmuHawk
public void ClearGraphics()
{
_luaSurface.Clear();
DrawFinish();
}
[LuaMethodAttributes(

View File

@ -836,6 +836,13 @@ namespace BizHawk.Client.EmuHawk
item.State = LuaFile.RunState.Disabled;
});
// Shenanigans
// We want any gui.text messages from a script to immediately update even when paused
GlobalWin.OSD.ClearGUIText();
GlobalWin.Tools.UpdateToolsAfter();
EndLuaDrawing();
StartLuaDrawing();
}
catch (IOException)
{