windowscodecs: Use IWICImagingFactory_CreatePalette in write_source.
Instead of PaletteImpl_Create. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Esme Povirk <esme@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2201ca08fb
commit
1fbd58bf33
|
@ -121,9 +121,17 @@ HRESULT write_source(IWICBitmapFrameEncode *iface,
|
|||
|
||||
if (need_palette)
|
||||
{
|
||||
IWICImagingFactory *factory;
|
||||
IWICPalette *palette;
|
||||
|
||||
hr = PaletteImpl_Create(&palette);
|
||||
hr = create_instance(&CLSID_WICImagingFactory, &IID_IWICImagingFactory, (void**)&factory);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
hr = IWICImagingFactory_CreatePalette(factory, &palette);
|
||||
IWICImagingFactory_Release(factory);
|
||||
}
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
hr = IWICBitmapSource_CopyPalette(converted_source, palette);
|
||||
|
|
Loading…
Reference in New Issue