Set the window non-topmost so it can be in the background
This commit is contained in:
parent
4849f3de54
commit
85f77578ff
1 changed files with 1 additions and 1 deletions
2
main.c
2
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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue