windowscodecs: Implement Palette_InitializeFromBitmap.
Dmitry Timoshkov
dmitry at baikal.ru
Tue Aug 14 20:55:58 CDT 2012
---
dlls/windowscodecs/palette.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/palette.c b/dlls/windowscodecs/palette.c
index f033012..ff7e179 100644
--- a/dlls/windowscodecs/palette.c
+++ b/dlls/windowscodecs/palette.c
@@ -450,8 +450,11 @@ static HRESULT WINAPI PaletteImpl_InitializeCustom(IWICPalette *iface,
static HRESULT WINAPI PaletteImpl_InitializeFromBitmap(IWICPalette *iface,
IWICBitmapSource *pISurface, UINT colorCount, BOOL fAddTransparentColor)
{
- FIXME("(%p,%p,%u,%i): stub\n", iface, pISurface, colorCount, fAddTransparentColor);
- return E_NOTIMPL;
+ TRACE("(%p,%p,%u,%d)\n", iface, pISurface, colorCount, fAddTransparentColor);
+
+ if (!pISurface) return E_INVALIDARG;
+
+ return IWICBitmapSource_CopyPalette(pISurface, iface);
}
static HRESULT WINAPI PaletteImpl_InitializeFromPalette(IWICPalette *iface,
--
1.7.11.4
More information about the wine-patches
mailing list