From 2ab69db4c300c62934a4e67c6dd1dedebf4c8df4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Sun, 27 May 2012 15:35:34 +0200 Subject: [PATCH] d3drm: Implement IDirect3DRMDeviceX_[Get|Set]RenderMode. --- dlls/d3drm/device.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/dlls/d3drm/device.c b/dlls/d3drm/device.c index cd2cda38a87..7d29236ee47 100644 --- a/dlls/d3drm/device.c +++ b/dlls/d3drm/device.c @@ -41,6 +41,7 @@ typedef struct { LONG ref; BOOL dither; D3DRMRENDERQUALITY quality; + DWORD rendermode; } IDirect3DRMDeviceImpl; static inline IDirect3DRMDeviceImpl *impl_from_IDirect3DRMDevice2(IDirect3DRMDevice2 *iface) @@ -444,18 +445,18 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_SetRenderMode(IDirect3DRMDevice2* i { IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice2(iface); - FIXME("(%p/%p)->(%u): stub\n", iface, This, dwFlags); + TRACE("(%p/%p)->(%u)\n", iface, This, dwFlags); - return E_NOTIMPL; + return IDirect3DRMDevice3_SetRenderMode(&This->IDirect3DRMDevice3_iface, dwFlags); } static DWORD WINAPI IDirect3DRMDevice2Impl_GetRenderMode(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_GetRenderMode(&This->IDirect3DRMDevice3_iface); } static HRESULT WINAPI IDirect3DRMDevice2Impl_GetDirect3DDevice2(IDirect3DRMDevice2* iface, @@ -869,18 +870,20 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_SetRenderMode(IDirect3DRMDevice3* i { IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface); - FIXME("(%p/%p)->(%u): stub\n", iface, This, dwFlags); + TRACE("(%p/%p)->(%u)\n", iface, This, dwFlags); - return E_NOTIMPL; + This->rendermode = dwFlags; + + return D3DRM_OK; } static DWORD WINAPI IDirect3DRMDevice3Impl_GetRenderMode(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->rendermode; } static HRESULT WINAPI IDirect3DRMDevice3Impl_GetDirect3DDevice2(IDirect3DRMDevice3* iface, -- 2.11.4.GIT