mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-25 03:09:13 +01:00
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 !
This commit is contained in:
1 parent
3f26cc6ed0
commit
cf00fd1ac8
1 file changed
+2
-12
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user