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(); InitializeComponent();
AddressesLabel.BackColor = Color.Transparent; 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(); LoadConfigSettings();
SetHeader(); SetHeader();
Closing += (o, e) => SaveConfigSettings(); Closing += (o, e) => SaveConfigSettings();
@ -95,6 +93,8 @@ namespace BizHawk.MultiClient
private void HexEditor_Load(object sender, EventArgs e) 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 (SaveWindowPosition)
{ {
if (Wndx >= 0 && Wndy >= 0) if (Wndx >= 0 && Wndy >= 0)