gdiplus: Make get_palette() usable for generating predefined palettes.
This commit is contained in:
parent
f165e2725f
commit
0b40df2990
|
@ -76,6 +76,8 @@ static ColorPalette *get_palette(IWICBitmapFrameDecode *frame, WICBitmapPaletteT
|
|||
hr = IWICImagingFactory_CreatePalette(factory, &wic_palette);
|
||||
if (hr == S_OK)
|
||||
{
|
||||
hr = WINCODEC_ERR_PALETTEUNAVAILABLE;
|
||||
if (frame)
|
||||
hr = IWICBitmapFrameDecode_CopyPalette(frame, wic_palette);
|
||||
if (hr != S_OK)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue