From 979c2cfc898884ff371b802c47b69d97f988e3ee Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 15 Apr 2011 02:02:21 -0500 Subject: [PATCH 1/4] windowscodecs: Implement FlipRotator_GetPixelFormat. --- dlls/windowscodecs/fliprotate.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/windowscodecs/fliprotate.c b/dlls/windowscodecs/fliprotate.c index 45ec509..2e834a2 100644 --- a/dlls/windowscodecs/fliprotate.c +++ b/dlls/windowscodecs/fliprotate.c @@ -117,9 +117,13 @@ static HRESULT WINAPI FlipRotator_GetSize(IWICBitmapFlipRotator *iface, static HRESULT WINAPI FlipRotator_GetPixelFormat(IWICBitmapFlipRotator *iface, WICPixelFormatGUID *pPixelFormat) { - FIXME("(%p,%p): stub\n", iface, pPixelFormat); + FlipRotator *This = impl_from_IWICBitmapFlipRotator(iface); + TRACE("(%p,%p)\n", iface, pPixelFormat); - return E_NOTIMPL; + if (!This->source) + return WINCODEC_ERR_WRONGSTATE; + else + return IWICBitmapSource_GetPixelFormat(This->source, pPixelFormat); } static HRESULT WINAPI FlipRotator_GetResolution(IWICBitmapFlipRotator *iface, -- 1.7.2.5