mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 11:25:13 +00:00
[0.4.15][DDRAW] Fix taskbar visibilty when switching to fullscreen (#7443)
CORE-16140, CORE-16148, CORE-16321, CORE-18644, and CORE-17799 Fixes taskbar being displayed when switching to fullscreen when using DirectDraw.
This commit is contained in:
parent
10ce2b8f08
commit
dccf79895c
1 changed files with 4 additions and 0 deletions
|
@ -1145,6 +1145,10 @@ static HRESULT WINAPI ddraw7_SetDisplayMode(IDirectDraw7 *iface, DWORD width, DW
|
|||
ddrawformat_from_wined3dformat(&ddraw->primary->surface_desc.u4.ddpfPixelFormat, mode.format_id);
|
||||
}
|
||||
ddraw->flags |= DDRAW_RESTORE_MODE;
|
||||
#ifdef __REACTOS__
|
||||
if (ddraw->cooperative_level & DDSCL_EXCLUSIVE)
|
||||
SetWindowPos(ddraw->dest_window, HWND_TOP, 0, 0, width, height, SWP_SHOWWINDOW | SWP_NOACTIVATE);
|
||||
#endif
|
||||
}
|
||||
|
||||
InterlockedCompareExchange(&ddraw->device_state, DDRAW_DEVICE_STATE_NOT_RESTORED, DDRAW_DEVICE_STATE_OK);
|
||||
|
|
Loading…
Reference in a new issue