[3/6] WineD3D: Setup the window for fullscreen in Reset

Stefan Dösinger stefan at codeweavers.com
Fri Jan 12 11:59:33 CST 2007


The same thing done as by CreateAdditionalSwapchain. This fixes the fullscreen 
switch of eve online.

The reverse way(restoring the window flags) is not in this patch, I am still 
working on getting that right.
-------------- next part --------------
From 7204b525c5150c0e1d3307a144f6b1d33caa64f7 Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Fri, 12 Jan 2007 15:38:36 +0100
Subject: [PATCH] WineD3D: Setup the window for fullscreen in Reset

---
 dlls/wined3d/device.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 8a02e31..45c0eda 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6381,6 +6381,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
         mode.Height = *pPresentationParameters->BackBufferHeight;
         mode.RefreshRate = *pPresentationParameters->FullScreen_RefreshRateInHz;
         mode.Format = swapchain->presentParms.BackBufferFormat;
+
+        SetWindowLongA(swapchain->win_handle, GWL_STYLE, WS_POPUP);
+        SetWindowPos(swapchain->win_handle, HWND_TOP, 0, 0,
+                     *pPresentationParameters->BackBufferWidth,
+                     *pPresentationParameters->BackBufferHeight, SWP_SHOWWINDOW | SWP_FRAMECHANGED);
     }
 
     /* Should Width == 800 && Height == 0 set 800x600? */
-- 
1.4.4.3



More information about the wine-patches mailing list