https://git.reactos.org/?p=reactos.git;a=commitdiff;h=16437937f7565f321d70b…
commit 16437937f7565f321d70bfbbc9844c77497e880e
Author: Maj Soklič <majs.1236(a)gmail.com>
AuthorDate: Fri Oct 11 00:21:28 2024 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Oct 10 15:21:28 2024 -0700
[DDRAW] Fix taskbar visibilty when switching to fullscreen (#7443)
Fix taskbar being displayed when switching to fullscreen when using DirectDraw
JIRA issue:
CORE-16140
CORE-16148
CORE-16321
CORE-18644
CORE-17799
---
dll/directx/wine/ddraw/ddraw.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dll/directx/wine/ddraw/ddraw.c b/dll/directx/wine/ddraw/ddraw.c
index e5acf2caff5..7894bd7422f 100644
--- a/dll/directx/wine/ddraw/ddraw.c
+++ b/dll/directx/wine/ddraw/ddraw.c
@@ -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);