mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02:00
A change that got left out of the fullscreen refactor
This commit is contained in:
1 parent
0e8a484a65
commit
46aa066f7b
1 file changed
+22
-21
+22
-21
@@ -851,28 +851,29 @@ namespace MainWindow {
|
||||
GetWindowPlacement(hWnd, &wp);
|
||||
if (!g_Config.bFullScreen) {
|
||||
g_Config.iWindowSizeState = (int)ShowCmdToWindowSizeState(wp.showCmd);
|
||||
switch (wp.showCmd) {
|
||||
case SW_SHOWNORMAL:
|
||||
case SW_SHOWMAXIMIZED:
|
||||
if (hasFocus) {
|
||||
g_InputManager.GainFocus();
|
||||
}
|
||||
if (g_wasMinimized) {
|
||||
System_PostUIMessage(UIMessage::WINDOW_RESTORED, "true");
|
||||
g_wasMinimized = false;
|
||||
}
|
||||
break;
|
||||
case SW_SHOWMINIMIZED:
|
||||
Native_NotifyWindowHidden(true);
|
||||
if (!g_Config.bPauseWhenMinimized) {
|
||||
System_PostUIMessage(UIMessage::WINDOW_MINIMIZED, "true");
|
||||
}
|
||||
g_InputManager.LoseFocus();
|
||||
g_wasMinimized = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch (wp.showCmd) {
|
||||
case SW_SHOWNORMAL:
|
||||
case SW_SHOWMAXIMIZED:
|
||||
if (hasFocus) {
|
||||
g_InputManager.GainFocus();
|
||||
}
|
||||
if (g_wasMinimized) {
|
||||
System_PostUIMessage(UIMessage::WINDOW_RESTORED, "true");
|
||||
g_wasMinimized = false;
|
||||
}
|
||||
break;
|
||||
case SW_SHOWMINIMIZED:
|
||||
Native_NotifyWindowHidden(true);
|
||||
if (!g_Config.bPauseWhenMinimized) {
|
||||
System_PostUIMessage(UIMessage::WINDOW_MINIMIZED, "true");
|
||||
}
|
||||
g_InputManager.LoseFocus();
|
||||
g_wasMinimized = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (sizeChanged) {
|
||||
|
||||
Reference in new issue
Block a user