From 19f89f0b126be33da825687d22df24566a3d4119 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Mon, 7 Jun 2010 16:39:34 -0500 Subject: [PATCH 5/7] windowscodecs: Implement GetSize for the TGA decoder. --- dlls/windowscodecs/tgaformat.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/windowscodecs/tgaformat.c b/dlls/windowscodecs/tgaformat.c index 9b30ffb..aef9076 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, -- 1.7.0.4