Henri Verbeet : ddraw: Initialize the AutoRestoreDisplayMode field of WINED3DPRESENT_PARAMETERS ( Valgrind).
Alexandre Julliard
julliard at winehq.org
Thu Jan 20 12:41:20 CST 2011
Module: wine
Branch: master
Commit: 93f1c49ea40e75fd079b05a949c60f9ba85fee94
URL: http://source.winehq.org/git/wine.git/?a=commit;h=93f1c49ea40e75fd079b05a949c60f9ba85fee94
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed Jan 19 19:20:09 2011 +0100
ddraw: Initialize the AutoRestoreDisplayMode field of WINED3DPRESENT_PARAMETERS (Valgrind).
---
dlls/ddraw/ddraw.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 06705fb..6aa3af6 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -2905,6 +2905,7 @@ static HRESULT ddraw_attach_d3d_device(IDirectDrawImpl *ddraw, IDirectDrawSurfac
localParameters.Flags = 0;
localParameters.FullScreen_RefreshRateInHz = WINED3DPRESENT_RATE_DEFAULT;
localParameters.PresentationInterval = WINED3DPRESENT_INTERVAL_DEFAULT;
+ localParameters.AutoRestoreDisplayMode = FALSE;
/* Set this NOW, otherwise creating the depth stencil surface will cause a
* recursive loop until ram or emulated video memory is full. */
@@ -2959,6 +2960,7 @@ static HRESULT ddraw_create_gdi_swapchain(IDirectDrawImpl *ddraw, IDirectDrawSur
presentation_parameters.Flags = 0;
presentation_parameters.FullScreen_RefreshRateInHz = WINED3DPRESENT_RATE_DEFAULT;
presentation_parameters.PresentationInterval = WINED3DPRESENT_INTERVAL_DEFAULT;
+ presentation_parameters.AutoRestoreDisplayMode = FALSE;
ddraw->d3d_target = primary;
hr = IWineD3DDevice_InitGDI(ddraw->wineD3DDevice, &presentation_parameters);
More information about the wine-cvs
mailing list