Vincent Povirk : windowscodecs: Implement GetSize for the ICO decoder.
Alexandre Julliard
julliard at winehq.org
Fri Aug 21 09:32:31 CDT 2009
Module: wine
Branch: master
Commit: ccc4c2d5d227c81f7dc197c671f4f0b6478dcaa3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ccc4c2d5d227c81f7dc197c671f4f0b6478dcaa3
Author: Vincent Povirk <vincent at 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,
More information about the wine-cvs
mailing list