windowscodecs: Implement GetSize for the GIF decoder.

This commit is contained in:
Vincent Povirk 2009-08-17 10:43:10 -05:00 committed by Alexandre Julliard
parent 45e9804a8e
commit d095d27d92
1 changed files with 7 additions and 2 deletions

View File

@ -102,8 +102,13 @@ static ULONG WINAPI GifFrameDecode_Release(IWICBitmapFrameDecode *iface)
static HRESULT WINAPI GifFrameDecode_GetSize(IWICBitmapFrameDecode *iface, static HRESULT WINAPI GifFrameDecode_GetSize(IWICBitmapFrameDecode *iface,
UINT *puiWidth, UINT *puiHeight) UINT *puiWidth, UINT *puiHeight)
{ {
FIXME("(%p,%p,%p): stub\n", iface, puiWidth, puiHeight); GifFrameDecode *This = (GifFrameDecode*)iface;
return E_NOTIMPL; TRACE("(%p,%p,%p)\n", iface, puiWidth, puiHeight);
*puiWidth = This->frame->ImageDesc.Width;
*puiHeight = This->frame->ImageDesc.Height;
return S_OK;
} }
static HRESULT WINAPI GifFrameDecode_GetPixelFormat(IWICBitmapFrameDecode *iface, static HRESULT WINAPI GifFrameDecode_GetPixelFormat(IWICBitmapFrameDecode *iface,