Henri Verbeet : d3drm: Avoid LPDDPIXELFORMAT.

Alexandre Julliard julliard at winehq.org
Tue Jan 22 14:52:21 CST 2013


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Jan 22 11:34:06 2013 +0100

d3drm: Avoid LPDDPIXELFORMAT.

---

 dlls/d3drm/device.c |    6 ++----
 include/d3drmobj.h  |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/d3drm/device.c b/dlls/d3drm/device.c
index ed6055b..6d72d92 100644
--- a/dlls/d3drm/device.c
+++ b/dlls/d3drm/device.c
@@ -904,10 +904,8 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_GetDirect3DDevice2(IDirect3DRMDevic
 }
 
 /*** IDirect3DRMDevice3 methods ***/
-static HRESULT WINAPI IDirect3DRMDevice3Impl_FindPreferredTextureFormat(IDirect3DRMDevice3* iface,
-                                                                        DWORD bitdepths,
-                                                                        DWORD flags,
-                                                                        LPDDPIXELFORMAT lpDDPF)
+static HRESULT WINAPI IDirect3DRMDevice3Impl_FindPreferredTextureFormat(IDirect3DRMDevice3 *iface,
+        DWORD bitdepths, DWORD flags, DDPIXELFORMAT *lpDDPF)
 {
     IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface);
 
diff --git a/include/d3drmobj.h b/include/d3drmobj.h
index 11922c5..69ab35d 100644
--- a/include/d3drmobj.h
+++ b/include/d3drmobj.h
@@ -678,7 +678,7 @@ DECLARE_INTERFACE_(IDirect3DRMDevice3,IDirect3DRMObject)
     STDMETHOD_(DWORD, GetRenderMode)(THIS) PURE;
     STDMETHOD(GetDirect3DDevice2)(THIS_ IDirect3DDevice2 **device) PURE;
     /*** IDirect3DRMDevice3 methods ***/
-    STDMETHOD(FindPreferredTextureFormat)(THIS_ DWORD BitDepths, DWORD flags, LPDDPIXELFORMAT pDDPF) PURE;
+    STDMETHOD(FindPreferredTextureFormat)(THIS_ DWORD BitDepths, DWORD flags, DDPIXELFORMAT *format) PURE;
     STDMETHOD(RenderStateChange)(THIS_ D3DRENDERSTATETYPE drsType, DWORD val, DWORD flags) PURE;
     STDMETHOD(LightStateChange)(THIS_ D3DLIGHTSTATETYPE drsType, DWORD val, DWORD flags) PURE;
     STDMETHOD(GetStateChangeOptions)(THIS_ DWORD StateClass, DWORD StateNum, LPDWORD pFlags) PURE;




More information about the wine-cvs mailing list