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