H. Verbeet : wined3d: Use SetupFullscreenWindow() to make the window fullscreen.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 19 06:29:31 CST 2007


Module: wine
Branch: master
Commit: 4352934b845df88dc0dc94a24ca01f70ba700a91
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4352934b845df88dc0dc94a24ca01f70ba700a91

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Thu Jan 18 23:41:43 2007 +0100

wined3d: Use SetupFullscreenWindow() to make the window fullscreen.

---

 dlls/wined3d/device.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 1572b10..2f95fb1 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1512,7 +1512,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl
         HDC      hdc;
         int      bpp = 0;
         RECT     clip_rc;
-        DWORD    style;
 
         /* Get info on the current display setup */
         hdc = GetDC(0);
@@ -1528,19 +1527,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, 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_FRAMECHANGED);
-
         /* For GetDisplayMode */
         This->ddraw_width = devmode.dmPelsWidth;
         This->ddraw_height = devmode.dmPelsHeight;
         This->ddraw_format = *(pPresentationParameters->BackBufferFormat);
 
+        IWineD3DDeviceImpl_SetupFullscreenWindow(iface, object->win_handle);
+
         /* And finally clip mouse to our screen */
         SetRect(&clip_rc, 0, 0, devmode.dmPelsWidth, devmode.dmPelsHeight);
         ClipCursor(&clip_rc);




More information about the wine-cvs mailing list