Vincent Povirk : windowscodecs: Implement FlipRotator_GetPixelFormat.

Alexandre Julliard julliard at winehq.org
Fri Apr 15 10:19:24 CDT 2011


Module: wine
Branch: master
Commit: d65f5799128e1cb6ec84736777e276429674ae8e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d65f5799128e1cb6ec84736777e276429674ae8e

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Fri Apr 15 02:02:21 2011 -0500

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,




More information about the wine-cvs mailing list