Add option fullscreen , make default to false

This commit is contained in:
raven02 2013-01-27 21:05:09 +08:00
parent cb67e0439a
commit b74b215f34
3 changed files with 5 additions and 2 deletions

View file

@ -69,6 +69,7 @@ void CConfig::Load(const char *iniFileName)
graphics->Get("VBO", &bUseVBO, false);
graphics->Get("DisableG3DLog", &bDisableG3DLog, false);
graphics->Get("VertexCache", &bVertexCache, true);
graphics->Get("FullScreen", &bFullScreen, false);
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
sound->Get("Enable", &bEnableSound, true);
@ -122,6 +123,7 @@ void CConfig::Save()
graphics->Set("VBO", bUseVBO);
graphics->Set("DisableG3DLog", bDisableG3DLog);
graphics->Set("VertexCache", bVertexCache);
graphics->Set("FullScreen", bFullScreen);
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
sound->Set("Enable", bEnableSound);

View file

@ -58,6 +58,7 @@ public:
bool SSAntiAliasing; //for Windows, too
bool bDisableG3DLog;
bool bVertexCache;
bool bFullScreen;
// Sound
bool bEnableSound;

View file

@ -498,8 +498,7 @@ namespace MainWindow
case ID_OPTIONS_FULLSCREEN:
if(g_bFullScreen) {
_ViewNormal(hWnd);
}
else {
} else {
_ViewFullScreen(hWnd);
}
UpdateMenus();
@ -644,6 +643,7 @@ namespace MainWindow
disasmWindow[0] = new CDisasm(MainWindow::GetHInstance(), MainWindow::GetHWND(), currentDebugMIPS);
DialogManager::AddDlg(disasmWindow[0]);
disasmWindow[0]->Show(g_Config.bShowDebuggerOnLoad);
if (g_Config.bFullScreen) _ViewFullScreen(hWnd);
memoryWindow[0] = new CMemoryDlg(MainWindow::GetHInstance(), MainWindow::GetHWND(), currentDebugMIPS);
DialogManager::AddDlg(memoryWindow[0]);
if (disasmWindow[0])