HexEditor: set defaultWidth/Height at loading, not in constructor

This commit is contained in:
taotao54321 2012-03-09 17:14:39 +00:00
parent 389693e6f4
commit 9716387b2f
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,6 @@ namespace BizHawk.MultiClient
{
InitializeComponent();
AddressesLabel.BackColor = Color.Transparent;
defaultWidth = this.Size.Width; //Save these first so that the user can restore to its original size
defaultHeight = this.Size.Height;
LoadConfigSettings();
SetHeader();
Closing += (o, e) => SaveConfigSettings();
@ -95,6 +93,8 @@ namespace BizHawk.MultiClient
private void HexEditor_Load(object sender, EventArgs e)
{
defaultWidth = this.Size.Width; //Save these first so that the user can restore to its original size
defaultHeight = this.Size.Height;
if (SaveWindowPosition)
{
if (Wndx >= 0 && Wndy >= 0)