Fwd: dlls/wined3d/device.c GetCreationParameters

Al Tobey tobert at gmail.com
Fri Jan 20 20:49:16 CST 2006


Take 5 of my patch to GetCreationParameters incorporating additional
feedback from Jacek Caban.   Thanks again.

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 2ffeb1a..dcd189e 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6138,12 +6138,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetDia
 HRESULT  WINAPI 
IWineD3DDeviceImpl_GetCreationParameters(IWineD3DDevice *iface,
D3DDEVICE_CREATION_PARAMETERS *pParameters) {
     IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *) iface;

-    FIXME("(%p) : stub\n", This);
-    /* Setup some reasonable defaults */
-    pParameters->AdapterOrdinal = 0; /* always for now */
-    pParameters->DeviceType = D3DDEVTYPE_HAL; /* always for now */
-    pParameters->hFocusWindow = 0;
-    pParameters->BehaviorFlags =0;
+    TRACE("(%p) : copying structure\n", This);
+    memcpy(pParameters, &This->createParms,
sizeof(D3DDEVICE_CREATION_PARAMETERS));
     return D3D_OK;
 }



More information about the wine-patches mailing list