[PATCH] d3d9: Properly set AutoRestoreDisplayMode=0A=

Stefan Doesinger stefan at codeweavers.com
Mon Dec 22 19:31:49 CST 2008


=0A=
It is set in CreateDevice, but WineD3D passes it back to d3d9 in the=0A=
CreateAdditionalSwapChain callback, which converts the wined3d structure =
back=0A=
to the d3d9 one and the value gets lost.=0A=
=0A=
Spotted by valgrind.=0A=
---=0A=
 dlls/d3d9/swapchain.c |    1 +=0A=
 1 files changed, 1 insertions(+), 0 deletions(-)=0A=
=0A=
diff --git a/dlls/d3d9/swapchain.c b/dlls/d3d9/swapchain.c=0A=
index eabe366..9f86bea 100644=0A=
--- a/dlls/d3d9/swapchain.c=0A=
+++ b/dlls/d3d9/swapchain.c=0A=
@@ -227,6 +227,7 @@ HRESULT  WINAPI  =
IDirect3DDevice9Impl_CreateAdditionalSwapChain(LPDIRECT3DDEVICE=0A=
     localParameters.Flags                               =3D =
pPresentationParameters->Flags;=0A=
     localParameters.FullScreen_RefreshRateInHz          =3D =
pPresentationParameters->FullScreen_RefreshRateInHz;=0A=
     localParameters.PresentationInterval                =3D =
pPresentationParameters->PresentationInterval;=0A=
+    localParameters.AutoRestoreDisplayMode              =3D TRUE;=0A=
 =0A=
     EnterCriticalSection(&d3d9_cs);=0A=
     hrc =3D IWineD3DDevice_CreateSwapChain(This->WineD3DDevice, =
&localParameters, &object->wineD3DSwapChain, (IUnknown*)object, =
D3D9CB_CreateRenderTarget, D3D9CB_CreateDepthStencilSurface, =
SURFACE_OPENGL);=0A=
-- =0A=
1.5.6.4=0A=
=0A=

------=_NextPart_000_0001_01C96502.A669A090--




More information about the wine-devel mailing list