Module: wine Branch: master Commit: ccc4c2d5d227c81f7dc197c671f4f0b6478dcaa3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ccc4c2d5d227c81f7dc197c671...
Author: Vincent Povirk vincent@codeweavers.com Date: Thu Aug 20 10:23:00 2009 -0500
windowscodecs: Implement GetSize for the ICO decoder.
---
dlls/windowscodecs/icoformat.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/icoformat.c b/dlls/windowscodecs/icoformat.c index 6f91137..dfdf94b 100644 --- a/dlls/windowscodecs/icoformat.c +++ b/dlls/windowscodecs/icoformat.c @@ -123,8 +123,14 @@ static ULONG WINAPI IcoFrameDecode_Release(IWICBitmapFrameDecode *iface) static HRESULT WINAPI IcoFrameDecode_GetSize(IWICBitmapFrameDecode *iface, UINT *puiWidth, UINT *puiHeight) { - FIXME("(%p,%p,%p): stub\n", iface, puiWidth, puiHeight); - return E_NOTIMPL; + IcoFrameDecode *This = (IcoFrameDecode*)iface; + + *puiWidth = This->entry.bWidth ? This->entry.bWidth : 256; + *puiHeight = This->entry.bHeight ? This->entry.bHeight : 256; + + TRACE("(%p) -> (%i,%i)\n", iface, *puiWidth, *puiHeight); + + return S_OK; }
static HRESULT WINAPI IcoFrameDecode_GetPixelFormat(IWICBitmapFrameDecode *iface,