position and size of the main window are now saved (fixes issue 2035)

Note that running in debug mode (Dolphin.exe -d) still maximizes the window and stores that size aswell.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4879 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
j4ck.fr0st 2010-01-18 18:01:03 +00:00
parent e44e412da8
commit 8fec36b22a
7 changed files with 32 additions and 27 deletions

View file

@ -172,12 +172,6 @@ void CCodeWindow::Save()
ini.Set("Float", "Sound", !!FindWindowById(IDM_SOUNDWINDOW_PARENT));
ini.Set("Float", "Video", !!FindWindowById(IDM_VIDEOWINDOW_PARENT));
// Save window settings
ini.Set("MainWindow", "x", Parent->GetPosition().x);
ini.Set("MainWindow", "y", Parent->GetPosition().y);
ini.Set("MainWindow", "w", Parent->GetSize().GetWidth());
ini.Set("MainWindow", "h", Parent->GetSize().GetHeight());
ini.Save(DEBUGGER_CONFIG_FILE);
}