mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-05 07:27:02 +00:00
Merge pull request #6551 from vnctdj/patch-1
Switch to fullscreen on the monitor PPSSPP is.
This commit is contained in:
commit
f1446f7ae9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user