Module: wine Branch: master Commit: d095d27d929c20b74d75212a2674485648701272 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d095d27d929c20b74d75212a26...
Author: Vincent Povirk vincent@codeweavers.com Date: Mon Aug 17 10:43:10 2009 -0500
windowscodecs: Implement GetSize for the GIF decoder.
---
dlls/windowscodecs/gifformat.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/gifformat.c b/dlls/windowscodecs/gifformat.c index d236ca3..a900043 100644 --- a/dlls/windowscodecs/gifformat.c +++ b/dlls/windowscodecs/gifformat.c @@ -102,8 +102,13 @@ static ULONG WINAPI GifFrameDecode_Release(IWICBitmapFrameDecode *iface) static HRESULT WINAPI GifFrameDecode_GetSize(IWICBitmapFrameDecode *iface, UINT *puiWidth, UINT *puiHeight) { - FIXME("(%p,%p,%p): stub\n", iface, puiWidth, puiHeight); - return E_NOTIMPL; + GifFrameDecode *This = (GifFrameDecode*)iface; + 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,