Fix repainting issues

This commit is contained in:
adelikat 2013-10-12 15:40:20 +00:00
parent 3ba7239a2b
commit f9aa5fbc72
2 changed files with 5 additions and 6 deletions

View File

@ -3051,7 +3051,6 @@
this.Deactivate += new System.EventHandler(this.MainForm_Deactivate);
this.Load += new System.EventHandler(this.MainForm_Load);
this.Shown += new System.EventHandler(this.MainForm_Shown);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.MainForm_Paint);
this.Enter += new System.EventHandler(this.MainForm_Enter);
this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.MainForm_MouseClick);
this.Resize += new System.EventHandler(this.MainForm_Resize);

View File

@ -428,6 +428,11 @@ namespace BizHawk.MultiClient
}
UpdateStatusSlots();
renderTarget.Paint += new System.Windows.Forms.PaintEventHandler(delegate
{
Global.DisplayManager.NeedsToPaint = true;
});
}
/// <summary>
@ -4270,11 +4275,6 @@ namespace BizHawk.MultiClient
Global.DisplayManager.NeedsToPaint = true;
}
private void MainForm_Paint(object sender, PaintEventArgs e)
{
Global.DisplayManager.NeedsToPaint = true;
}
public void LoadRamWatch(bool load_dialog)
{
if (!RamWatch1.IsHandleCreated || RamWatch1.IsDisposed)