wined3d: Synchronize window style correcting code with ddraw
Dmitry Timoshkov
dmitry at codeweavers.com
Thu Jan 18 05:20:00 CST 2007
Hello,
this patch should fix the regression reported on #wine-hackers.
Changelog:
wined3d: Synchronize window style correcting code with ddraw.
---
dlls/wined3d/device.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index bc4b2f2..a73f0a8 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1445,8 +1445,18 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
/* Make popup window, remove caption and borders */
style = GetWindowLongW(object->win_handle, GWL_STYLE);
+ /* Filter out window decorations */
style &= ~WS_CAPTION;
- SetWindowLongW(object->win_handle, GWL_STYLE, style | WS_POPUP);
+ style &= ~WS_THICKFRAME;
+ /* Make sure the window is managed, otherwise we won't get keyboard input */
+ style |= WS_POPUP | WS_SYSMENU;
+ SetWindowLongW(object->win_handle, GWL_STYLE, style);
+
+ style = GetWindowLongW(object->win_handle, GWL_EXSTYLE);
+ style &= ~WS_EX_WINDOWEDGE;
+ style &= ~WS_EX_CLIENTEDGE;
+ SetWindowLongW(object->win_handle, GWL_EXSTYLE, style);
+
SetWindowPos(object->win_handle, HWND_TOP, 0, 0,
*(pPresentationParameters->BackBufferWidth),
*(pPresentationParameters->BackBufferHeight), SWP_FRAMECHANGED);
--
1.4.4.4
More information about the wine-patches
mailing list