=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: d3drm: Implement IDirect3DRMDeviceX_ [Get|Set]Dither.

Alexandre Julliard julliard at winehq.org
Tue May 29 13:58:02 CDT 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun May 27 15:34:40 2012 +0200

d3drm: Implement IDirect3DRMDeviceX_[Get|Set]Dither.

---

 dlls/d3drm/device.c |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/dlls/d3drm/device.c b/dlls/d3drm/device.c
index e6d1036..9ad9367 100644
--- a/dlls/d3drm/device.c
+++ b/dlls/d3drm/device.c
@@ -39,6 +39,7 @@ typedef struct {
     IDirect3DRMDevice3 IDirect3DRMDevice3_iface;
     IDirect3DRMWinDevice IDirect3DRMWinDevice_iface;
     LONG ref;
+    BOOL dither;
 } IDirect3DRMDeviceImpl;
 
 static inline IDirect3DRMDeviceImpl *impl_from_IDirect3DRMDevice2(IDirect3DRMDevice2 *iface)
@@ -281,9 +282,9 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_SetDither(IDirect3DRMDevice2* iface
 {
     IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice2(iface);
 
-    FIXME("(%p/%p)->(%d): stub\n", iface, This, enable);
+    TRACE("(%p/%p)->(%d)\n", iface, This, enable);
 
-    return E_NOTIMPL;
+    return IDirect3DRMDevice3_SetDither(&This->IDirect3DRMDevice3_iface, enable);
 }
 
 static HRESULT WINAPI IDirect3DRMDevice2Impl_SetShades(IDirect3DRMDevice2* iface, DWORD count)
@@ -329,9 +330,9 @@ static BOOL WINAPI IDirect3DRMDevice2Impl_GetDither(IDirect3DRMDevice2* iface)
 {
     IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice2(iface);
 
-    FIXME("(%p/%p)->(): stub\n", iface, This);
+    TRACE("(%p/%p)->()\n", iface, This);
 
-    return E_NOTIMPL;
+    return IDirect3DRMDevice3_GetDither(&This->IDirect3DRMDevice3_iface);
 }
 
 static DWORD WINAPI IDirect3DRMDevice2Impl_GetShades(IDirect3DRMDevice2* iface)
@@ -701,9 +702,11 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_SetDither(IDirect3DRMDevice3* iface
 {
     IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface);
 
-    FIXME("(%p/%p)->(%d): stub\n", iface, This, enable);
+    TRACE("(%p/%p)->(%d)\n", iface, This, enable);
 
-    return E_NOTIMPL;
+    This->dither = enable;
+
+    return D3DRM_OK;
 }
 
 static HRESULT WINAPI IDirect3DRMDevice3Impl_SetShades(IDirect3DRMDevice3* iface, DWORD count)
@@ -749,9 +752,9 @@ static BOOL WINAPI IDirect3DRMDevice3Impl_GetDither(IDirect3DRMDevice3* iface)
 {
     IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface);
 
-    FIXME("(%p/%p)->(): stub\n", iface, This);
+    TRACE("(%p/%p)->()\n", iface, This);
 
-    return E_NOTIMPL;
+    return This->dither;
 }
 
 static DWORD WINAPI IDirect3DRMDevice3Impl_GetShades(IDirect3DRMDevice3* iface)




More information about the wine-cvs mailing list