1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

use SetWindowPos rather than ShowWindow trick in WM_AUTORENDER (Works better on WINE)

This commit is contained in:
FunkyFr3sh 2018-08-05 00:36:46 +02:00
parent b8ee01684f
commit a2ec669793

View File

@ -623,8 +623,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_AUTORENDERER:
{
mouse_unlock();
ShowWindow(ddraw->hWnd, SW_MINIMIZE);
ShowWindow(ddraw->hWnd, SW_RESTORE);
SetWindowPos(ddraw->hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
SetWindowPos(ddraw->hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
//ShowWindow(ddraw->hWnd, SW_MINIMIZE);
//ShowWindow(ddraw->hWnd, SW_RESTORE);
mouse_lock();
return 0;
}