From 9716387b2f580c2b0ada705596a4ac9fc923087f Mon Sep 17 00:00:00 2001 From: taotao54321 Date: Fri, 9 Mar 2012 17:14:39 +0000 Subject: [PATCH] HexEditor: set defaultWidth/Height at loading, not in constructor --- BizHawk.MultiClient/tools/HexEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.MultiClient/tools/HexEditor.cs b/BizHawk.MultiClient/tools/HexEditor.cs index f6b892e982..626a55019b 100644 --- a/BizHawk.MultiClient/tools/HexEditor.cs +++ b/BizHawk.MultiClient/tools/HexEditor.cs @@ -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)