windowscodecs: Implement IWICBitmapFlipRotator_GetSize.

oldstable
Vincent Povirk 2010-04-27 11:40:44 -05:00 committed by Alexandre Julliard
parent dbdf1ef8b6
commit 0e992fccc5
1 changed files with 8 additions and 2 deletions

View File

@ -98,9 +98,15 @@ static ULONG WINAPI FlipRotator_Release(IWICBitmapFlipRotator *iface)
static HRESULT WINAPI FlipRotator_GetSize(IWICBitmapFlipRotator *iface,
UINT *puiWidth, UINT *puiHeight)
{
FIXME("(%p,%p,%p): stub\n", iface, puiWidth, puiHeight);
FlipRotator *This = (FlipRotator*)iface;
TRACE("(%p,%p,%p)\n", iface, puiWidth, puiHeight);
return E_NOTIMPL;
if (!This->source)
return WINCODEC_ERR_WRONGSTATE;
else if (This->swap_xy)
return IWICBitmapSource_GetSize(This->source, puiHeight, puiWidth);
else
return IWICBitmapSource_GetSize(This->source, puiWidth, puiHeight);
}
static HRESULT WINAPI FlipRotator_GetPixelFormat(IWICBitmapFlipRotator *iface,