Commit b15e0323 authored by Tim Falken's avatar Tim Falken
Browse files

fix size load issue

parent c2a3181e
No preview for this file type
......@@ -38,7 +38,7 @@ namespace PaintLang
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\BytePaint", "MemoryFormX", Left);
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\BytePaint", "MemoryFormY", Top);
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\BytePaint", "OutputFormH", Height);
Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\BytePaint", "MemoryFormH", Height);
}
private void LoadSavedPositionAndSize()
......@@ -49,7 +49,7 @@ namespace PaintLang
Left = (int)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\BytePaint", "MemoryFormX", Left);
Top = (int)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\BytePaint", "MemoryFormY", Top);
Height = (int)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\BytePaint", "OutputFormH", Height);
Height = (int)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\BytePaint", "MemoryFormH", Height);
}
catch (Exception e)
{ } //Key probably doesn't exist yet, no real issue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment