Deleted the ClearDisplaySurface functions. If you just need to clear the graphics, call gui_ClearGraphics function in LuaImplementation.

This commit is contained in:
Rolanmen1 2012-05-01 15:15:19 +00:00
parent 2799d55f4a
commit 9b9a8546a5
1 changed files with 1 additions and 10 deletions

View File

@ -111,7 +111,6 @@ namespace BizHawk.MultiClient
luaList[x].Enabled = false; luaList[x].Enabled = false;
Changes(true); Changes(true);
UpdateNumberOfScripts(); UpdateNumberOfScripts();
ClearDisplaySurface();
} }
public void Restart() public void Restart()
@ -287,17 +286,9 @@ namespace BizHawk.MultiClient
} }
LuaListView.Refresh(); LuaListView.Refresh();
UpdateNumberOfScripts(); UpdateNumberOfScripts();
ClearDisplaySurface();
Changes(true); Changes(true);
} }
public void ClearDisplaySurface()
{
LuaImp.gui_drawNew();
LuaImp.gui_clearGraphics();
LuaImp.gui_drawFinish();
}
public void RunLuaScripts() public void RunLuaScripts()
{ {
for (int x = 0; x < luaList.Count; x++) for (int x = 0; x < luaList.Count; x++)
@ -440,7 +431,6 @@ namespace BizHawk.MultiClient
indexes.Clear(); indexes.Clear();
DisplayLuaList(); DisplayLuaList();
} }
ClearDisplaySurface();
UpdateNumberOfScripts(); UpdateNumberOfScripts();
} }
@ -843,6 +833,7 @@ namespace BizHawk.MultiClient
try try
{ {
LuaImp.gui_drawNew(); LuaImp.gui_drawNew();
//LuaImp.gui_clearGraphics();
if (s.Enabled && s.Thread != null && !s.Paused) if (s.Enabled && s.Thread != null && !s.Paused)
{ {
bool prohibit = false; bool prohibit = false;