Nikolay Sivov : windowscodecs: Implement GetPalette() for clipper.

Alexandre Julliard julliard at winehq.org
Mon Jul 22 14:22:46 CDT 2013


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Jul 21 23:42:48 2013 +0400

windowscodecs: Implement GetPalette() for clipper.

---

 dlls/windowscodecs/clipper.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/clipper.c b/dlls/windowscodecs/clipper.c
index d8f4b32..668d144 100644
--- a/dlls/windowscodecs/clipper.c
+++ b/dlls/windowscodecs/clipper.c
@@ -149,8 +149,17 @@ static HRESULT WINAPI BitmapClipper_GetResolution(IWICBitmapClipper *iface,
 static HRESULT WINAPI BitmapClipper_CopyPalette(IWICBitmapClipper *iface,
     IWICPalette *palette)
 {
-    FIXME("(%p,%p): stub\n", iface, palette);
-    return E_NOTIMPL;
+    BitmapClipper *This = impl_from_IWICBitmapClipper(iface);
+
+    TRACE("(%p,%p)\n", iface, palette);
+
+    if (!palette)
+        return E_INVALIDARG;
+
+    if (!This->source)
+        return WINCODEC_ERR_WRONGSTATE;
+
+    return IWICBitmapSource_CopyPalette(This->source, palette);
 }
 
 static HRESULT WINAPI BitmapClipper_CopyPixels(IWICBitmapClipper *iface,




More information about the wine-cvs mailing list