Module: wine Branch: master Commit: a044639deebc731533458503311ddf50065eefdd URL: http://source.winehq.org/git/wine.git/?a=commit;h=a044639deebc73153345850331...
Author: Vincent Povirk vincent@codeweavers.com Date: Mon Jun 7 16:39:34 2010 -0500
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 3606128..f778cd4 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,