From 1fbd94d589fc1ec4e887ea28ce5b9b09b5ae245b Mon Sep 17 00:00:00 2001 From: The Dax Date: Sun, 29 Jun 2014 13:54:35 -0400 Subject: [PATCH] Win32: Make pausing when minimizing optional in the ini. --- Core/Config.cpp | 1 + Core/Config.h | 1 + Windows/WndMainWindow.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index d95ed2ad7..6c64e79b0 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -309,6 +309,7 @@ static ConfigSetting generalSettings[] = { ConfigSetting("WindowWidth", &g_Config.iWindowWidth, 0), // 0 will be automatically reset later (need to do the AdjustWindowRect dance). ConfigSetting("WindowHeight", &g_Config.iWindowHeight, 0), ConfigSetting("PauseOnLostFocus", &g_Config.bPauseOnLostFocus, false), + ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, true), #endif ConfigSetting("DumpDecryptedEboots", &g_Config.bDumpDecryptedEboot, false), ConfigSetting(false), diff --git a/Core/Config.h b/Core/Config.h index 1c9a16e3f..0dab87502 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -72,6 +72,7 @@ public: bool bTopMost; std::string sFont; bool bIgnoreWindowsKey; + bool bPauseWhenMinimized; #endif #if !defined(MOBILE_DEVICE) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 39df56624..67a666169 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -1097,7 +1097,7 @@ namespace MainWindow ResizeDisplay(); break; case SIZE_MINIMIZED: - Core_NotifyWindowHidden(true); + Core_NotifyWindowHidden(g_Config.bPauseWhenMinimized); break; default: break;