From 85f77578ff42330abc6fc0b2c81ca6fc86a0aa77 Mon Sep 17 00:00:00 2001 From: Toni Spets Date: Mon, 8 Nov 2010 18:28:38 +0200 Subject: [PATCH] Set the window non-topmost so it can be in the background --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 7401463..106f575 100644 --- a/main.c +++ b/main.c @@ -336,7 +336,7 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD int y = (mode.dmPelsHeight / 2) - (This->render->height / 2); RECT dst = { x, y, This->render->width+x, This->render->height+y }; AdjustWindowRect(&dst, GetWindowLong(This->hWnd, GWL_STYLE), FALSE); - SetWindowPos(This->hWnd, HWND_TOPMOST, dst.left, dst.top, (dst.right - dst.left), (dst.bottom - dst.top), SWP_SHOWWINDOW); + SetWindowPos(This->hWnd, HWND_NOTOPMOST, dst.left, dst.top, (dst.right - dst.left), (dst.bottom - dst.top), SWP_SHOWWINDOW); } else {