Debugger: Fixed crash when opening debugger on some computers

This commit is contained in:
Souryo 2016-09-07 07:28:02 -04:00
parent 8f797bc3f2
commit bab9296f23
2 changed files with 2 additions and 2 deletions

View file

@ -803,6 +803,7 @@
this.Name = "frmDebugger";
this.Text = "Debugger";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.frmDebugger_FormClosed);
this.Resize += new System.EventHandler(this.frmDebugger_Resize);
this.contextMenuCode.ResumeLayout(false);
this.splitContainer.Panel1.ResumeLayout(false);
this.splitContainer.Panel2.ResumeLayout(false);

View file

@ -429,9 +429,8 @@ namespace Mesen.GUI.Debugger
ctrlPpuMemoryMapping.Invalidate();
}
protected override void OnResize(EventArgs e)
private void frmDebugger_Resize(object sender, EventArgs e)
{
base.OnResize(e);
ctrlCpuMemoryMapping.Invalidate();
ctrlPpuMemoryMapping.Invalidate();
}