Use SetWindowPos to prevent interruptions on fullscreen

This commit is contained in:
sukibaby
2024-09-17 00:00:34 -07:00
committed by teejusb
parent 322ec7b231
commit 0351ba6693
+1
View File
@@ -89,6 +89,7 @@ static LRESULT CALLBACK GraphicsWindow_WndProc( HWND hWnd, UINT msg, WPARAM wPar
{
ChangeDisplaySettings( &g_FullScreenDevMode, CDS_FULLSCREEN );
ShowWindow( g_hWndMain, SW_SHOWNORMAL );
SetWindowPos( g_hWndMain, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE );
}
else if( !g_bHasFocus && bHadFocus )
{