Commit cbf51069 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

windowscodecs: Implement GetPalette() for clipper.

parent 194c43ac
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment