Dmitry Timoshkov : wined3d: Do not play with WS_VISIBLE,
this causes unwanted mapping/unmapping of the window.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 15 07:43:07 CST 2007
Module: wine
Branch: master
Commit: 5ddac44dc2a6637613407fa900d3fafac37e70d8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ddac44dc2a6637613407fa900d3fafac37e70d8
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Sun Jan 14 20:16:42 2007 +0800
wined3d: Do not play with WS_VISIBLE, this causes unwanted mapping/unmapping of the window.
---
dlls/wined3d/device.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 2097b13..a77ccdc 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1427,6 +1427,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
HDC hdc;
int bpp = 0;
RECT clip_rc;
+ DWORD style;
/* Get info on the current display setup */
hdc = GetDC(0);
@@ -1442,11 +1443,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl
MultiByteToWideChar(CP_ACP, 0, "Gamers CG", -1, devmode.dmDeviceName, CCHDEVICENAME);
ChangeDisplaySettingsExW(devmode.dmDeviceName, &devmode, object->win_handle, CDS_FULLSCREEN, NULL);
- /* Make popup window */
- SetWindowLongA(object->win_handle, GWL_STYLE, WS_POPUP);
+ /* Make popup window, remove caption and borders */
+ style = GetWindowLongW(object->win_handle, GWL_STYLE);
+ style &= ~WS_CAPTION;
+ SetWindowLongW(object->win_handle, GWL_STYLE, style | WS_POPUP);
SetWindowPos(object->win_handle, HWND_TOP, 0, 0,
*(pPresentationParameters->BackBufferWidth),
- *(pPresentationParameters->BackBufferHeight), SWP_SHOWWINDOW | SWP_FRAMECHANGED);
+ *(pPresentationParameters->BackBufferHeight), SWP_FRAMECHANGED);
/* For GetDisplayMode */
This->ddraw_width = devmode.dmPelsWidth;
More information about the wine-cvs
mailing list