From a044639deebc731533458503311ddf50065eefdd Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Mon, 7 Jun 2010 16:39:34 -0500 Subject: [PATCH] windowscodecs: Implement GetSize for the TGA decoder. --- dlls/windowscodecs/tgaformat.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/windowscodecs/tgaformat.c b/dlls/windowscodecs/tgaformat.c index 36061284b5f..f778cd43561 100644 --- a/dlls/windowscodecs/tgaformat.c +++ b/dlls/windowscodecs/tgaformat.c @@ -347,8 +347,14 @@ static ULONG WINAPI TgaDecoder_Frame_Release(IWICBitmapFrameDecode *iface) static HRESULT WINAPI TgaDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface, UINT *puiWidth, UINT *puiHeight) { - FIXME("(%p)\n", iface); - return E_NOTIMPL; + TgaDecoder *This = decoder_from_frame(iface); + + *puiWidth = This->header.width; + *puiHeight = This->header.height; + + TRACE("(%p)->(%u,%u)\n", iface, *puiWidth, *puiHeight); + + return S_OK; } static HRESULT WINAPI TgaDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *iface, -- 2.11.4.GIT