From 7b03714ce18868bb2aeab76f03acd72199b533be Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 20 Aug 2009 10:23:00 -0500 Subject: [PATCH] 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, -- 1.5.4.3