From cf00fd1ac883cfe101607e73e68fd7a4ee30b394 Mon Sep 17 00:00:00 2001 From: vnctdj Date: Mon, 14 Jul 2014 12:59:02 +0200 Subject: [PATCH] Switch to fullscreen on the monitor PPSSPP is. When using more than one monitor, PPSSPP was always switching to full screen on the main monitor. Now it will switch to full screen on the monitor he currently is. Many thanks to @unknownbrackets for explaining me how to do this ! --- Windows/WndMainWindow.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 2578346c1d..3c5372f30b 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -323,12 +323,7 @@ namespace MainWindow ::SetMenu(hWnd, menu); // Resize to normal view. - // NOTE: Use SWP_FRAMECHANGED to force redraw non-client. - const int x = g_normalRC.left; - const int y = g_normalRC.top; - const int cx = g_normalRC.right - g_normalRC.left; - const int cy = g_normalRC.bottom - g_normalRC.top; - ::SetWindowPos(hWnd, HWND_NOTOPMOST, x, y, cx, cy, SWP_FRAMECHANGED); + ShowWindow(hwndMain, SW_RESTORE); // Reset full screen indicator. g_Config.bFullScreen = false; @@ -363,12 +358,7 @@ namespace MainWindow ::SetMenu(hWnd, NULL); // Resize to full screen view. - // NOTE: Use SWP_FRAMECHANGED to force redraw non-client. - const int x = 0; - const int y = 0; - const int cx = ::GetSystemMetrics(SM_CXSCREEN); - const int cy = ::GetSystemMetrics(SM_CYSCREEN); - ::SetWindowPos(hWnd, HWND_TOPMOST, x, y, cx, cy, SWP_FRAMECHANGED); + ShowWindow(hwndMain, SW_MAXIMIZE); // Set full screen indicator. g_Config.bFullScreen = true;