Debugger: Reduced minimum size for main debugger window

This commit is contained in:
Sour 2018-06-05 19:22:55 -04:00
parent 23f96df5b7
commit 47265b757a
4 changed files with 18 additions and 3 deletions

View file

@ -1737,7 +1737,7 @@ namespace Mesen.GUI.Debugger
this.Controls.Add(this.tsToolbar);
this.Controls.Add(this.menuStrip);
this.MainMenuStrip = this.menuStrip;
this.MinimumSize = new System.Drawing.Size(1000, 725);
this.MinimumSize = new System.Drawing.Size(850, 685);
this.Name = "frmDebugger";
this.Text = "Debugger";
this.splitContainer.Panel1.ResumeLayout(false);

View file

@ -1403,5 +1403,22 @@ namespace Mesen.GUI.Debugger
{
InteropEmu.PowerCycle();
}
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
if(lblPrgAnalysis != null) {
if(this.Width - this._minimumSize.Width < 100) {
if(lblPrgAnalysis.Text != "PRG:") {
lblPrgAnalysis.Text = "PRG:";
lblChrAnalysis.Text = "CHR:";
}
} else if(lblPrgAnalysis.Text == "PRG:") {
lblPrgAnalysis.Text = "PRG analysis:";
lblChrAnalysis.Text = "CHR analysis:";
}
}
}
}
}

View file

@ -94,7 +94,6 @@ namespace Mesen.GUI.Forms
//
this.AcceptButton = this.btnOK;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(327, 262);
this.Controls.Add(this.baseConfigPanel);
this.Name = "BaseConfigForm";
this.baseConfigPanel.ResumeLayout(false);

View file

@ -228,7 +228,6 @@ namespace Mesen.GUI.Forms
//
// BaseForm
//
this.ClientSize = new System.Drawing.Size(284, 262);
this.Name = "BaseForm";
this.ResumeLayout(false);