From 47265b757a1b9d8c07f90d26d3290ae55a4dea0e Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 5 Jun 2018 19:22:55 -0400 Subject: [PATCH] Debugger: Reduced minimum size for main debugger window --- GUI.NET/Debugger/frmDebugger.Designer.cs | 2 +- GUI.NET/Debugger/frmDebugger.cs | 17 +++++++++++++++++ GUI.NET/Forms/BaseConfigForm.Designer.cs | 1 - GUI.NET/Forms/BaseForm.cs | 1 - 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/GUI.NET/Debugger/frmDebugger.Designer.cs b/GUI.NET/Debugger/frmDebugger.Designer.cs index 697029d3..355408db 100644 --- a/GUI.NET/Debugger/frmDebugger.Designer.cs +++ b/GUI.NET/Debugger/frmDebugger.Designer.cs @@ -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); diff --git a/GUI.NET/Debugger/frmDebugger.cs b/GUI.NET/Debugger/frmDebugger.cs index f5f0ddef..fe0f2498 100644 --- a/GUI.NET/Debugger/frmDebugger.cs +++ b/GUI.NET/Debugger/frmDebugger.cs @@ -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:"; + } + } + } } } diff --git a/GUI.NET/Forms/BaseConfigForm.Designer.cs b/GUI.NET/Forms/BaseConfigForm.Designer.cs index 2d624232..e937daee 100644 --- a/GUI.NET/Forms/BaseConfigForm.Designer.cs +++ b/GUI.NET/Forms/BaseConfigForm.Designer.cs @@ -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); diff --git a/GUI.NET/Forms/BaseForm.cs b/GUI.NET/Forms/BaseForm.cs index ff620402..3a535b23 100644 --- a/GUI.NET/Forms/BaseForm.cs +++ b/GUI.NET/Forms/BaseForm.cs @@ -228,7 +228,6 @@ namespace Mesen.GUI.Forms // // BaseForm // - this.ClientSize = new System.Drawing.Size(284, 262); this.Name = "BaseForm"; this.ResumeLayout(false);