d3drm: Implement IDirect3DRMDeviceX_[Get|Set]Quality.

This commit is contained in:
André Hentschel 2012-05-27 15:35:01 +02:00 committed by Alexandre Julliard
parent 2268f8c7f1
commit 66262eea55
1 changed files with 11 additions and 8 deletions

View File

@ -40,6 +40,7 @@ typedef struct {
IDirect3DRMWinDevice IDirect3DRMWinDevice_iface; IDirect3DRMWinDevice IDirect3DRMWinDevice_iface;
LONG ref; LONG ref;
BOOL dither; BOOL dither;
D3DRMRENDERQUALITY quality;
} IDirect3DRMDeviceImpl; } IDirect3DRMDeviceImpl;
static inline IDirect3DRMDeviceImpl *impl_from_IDirect3DRMDevice2(IDirect3DRMDevice2 *iface) static inline IDirect3DRMDeviceImpl *impl_from_IDirect3DRMDevice2(IDirect3DRMDevice2 *iface)
@ -301,9 +302,9 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_SetQuality(IDirect3DRMDevice2* ifac
{ {
IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice2(iface); IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice2(iface);
FIXME("(%p/%p)->(%u): stub\n", iface, This, quality); TRACE("(%p/%p)->(%u)\n", iface, This, quality);
return E_NOTIMPL; return IDirect3DRMDevice3_SetQuality(&This->IDirect3DRMDevice3_iface, quality);
} }
static HRESULT WINAPI IDirect3DRMDevice2Impl_SetTextureQuality(IDirect3DRMDevice2* iface, static HRESULT WINAPI IDirect3DRMDevice2Impl_SetTextureQuality(IDirect3DRMDevice2* iface,
@ -384,9 +385,9 @@ static D3DRMRENDERQUALITY WINAPI IDirect3DRMDevice2Impl_GetQuality(IDirect3DRMDe
{ {
IDirect3DRMDeviceImpl *This = impl_from_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_GetQuality(&This->IDirect3DRMDevice3_iface);
} }
static D3DCOLORMODEL WINAPI IDirect3DRMDevice2Impl_GetColorModel(IDirect3DRMDevice2* iface) static D3DCOLORMODEL WINAPI IDirect3DRMDevice2Impl_GetColorModel(IDirect3DRMDevice2* iface)
@ -723,9 +724,11 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_SetQuality(IDirect3DRMDevice3* ifac
{ {
IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface); IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface);
FIXME("(%p/%p)->(%u): stub\n", iface, This, quality); TRACE("(%p/%p)->(%u)\n", iface, This, quality);
return E_NOTIMPL; This->quality = quality;
return D3DRM_OK;
} }
static HRESULT WINAPI IDirect3DRMDevice3Impl_SetTextureQuality(IDirect3DRMDevice3* iface, static HRESULT WINAPI IDirect3DRMDevice3Impl_SetTextureQuality(IDirect3DRMDevice3* iface,
@ -806,9 +809,9 @@ static D3DRMRENDERQUALITY WINAPI IDirect3DRMDevice3Impl_GetQuality(IDirect3DRMDe
{ {
IDirect3DRMDeviceImpl *This = impl_from_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->quality;
} }
static D3DCOLORMODEL WINAPI IDirect3DRMDevice3Impl_GetColorModel(IDirect3DRMDevice3* iface) static D3DCOLORMODEL WINAPI IDirect3DRMDevice3Impl_GetColorModel(IDirect3DRMDevice3* iface)