Module: wine Branch: master Commit: c7125783dec641086433062d9e24195378a6ddd9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c7125783dec641086433062d9e...
Author: Vincent Povirk vincent@codeweavers.com Date: Thu Aug 27 12:39:16 2009 -0500
windowscodecs: Implement GetSize for the PNG decoder.
---
dlls/windowscodecs/pngformat.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c index 5ab9c9f..2373f99 100644 --- a/dlls/windowscodecs/pngformat.c +++ b/dlls/windowscodecs/pngformat.c @@ -456,8 +456,11 @@ static ULONG WINAPI PngDecoder_Frame_Release(IWICBitmapFrameDecode *iface) static HRESULT WINAPI PngDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface, UINT *puiWidth, UINT *puiHeight) { - FIXME("(%p,%p,%p): stub\n", iface, puiWidth, puiHeight); - return E_NOTIMPL; + PngDecoder *This = impl_from_frame(iface); + *puiWidth = This->width; + *puiHeight = This->height; + TRACE("(%p)->(%u,%u)\n", iface, *puiWidth, *puiHeight); + return S_OK; }
static HRESULT WINAPI PngDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *iface,