Vincent Povirk : windowscodecs: Implement FlipRotator_GetResolution.

Alexandre Julliard julliard at winehq.org
Thu Jul 28 13:55:41 CDT 2011


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

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Wed Jul 27 16:07:57 2011 -0500

windowscodecs: Implement FlipRotator_GetResolution.

---

 dlls/windowscodecs/fliprotate.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/fliprotate.c b/dlls/windowscodecs/fliprotate.c
index 2e834a2..26062cd 100644
--- a/dlls/windowscodecs/fliprotate.c
+++ b/dlls/windowscodecs/fliprotate.c
@@ -129,9 +129,15 @@ static HRESULT WINAPI FlipRotator_GetPixelFormat(IWICBitmapFlipRotator *iface,
 static HRESULT WINAPI FlipRotator_GetResolution(IWICBitmapFlipRotator *iface,
     double *pDpiX, double *pDpiY)
 {
-    FIXME("(%p,%p,%p): stub\n", iface, pDpiX, pDpiY);
+    FlipRotator *This = impl_from_IWICBitmapFlipRotator(iface);
+    TRACE("(%p,%p,%p)\n", iface, pDpiX, pDpiY);
 
-    return E_NOTIMPL;
+    if (!This->source)
+        return WINCODEC_ERR_WRONGSTATE;
+    else if (This->swap_xy)
+        return IWICBitmapSource_GetResolution(This->source, pDpiY, pDpiX);
+    else
+        return IWICBitmapSource_GetResolution(This->source, pDpiX, pDpiY);
 }
 
 static HRESULT WINAPI FlipRotator_CopyPalette(IWICBitmapFlipRotator *iface,




More information about the wine-cvs mailing list