windowscodecs: Implement GetSize for the PNG decoder.

This commit is contained in:
Vincent Povirk 2009-08-27 12:39:16 -05:00 committed by Alexandre Julliard
parent 50b07b795d
commit c7125783de
1 changed files with 5 additions and 2 deletions

View File

@ -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,