mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
windowscodecs: Add support for generating WICBitmapPaletteTypeFixedGray4 palette.
This commit is contained in:
parent
ca9d128eca
commit
d5cc4021b6
@ -117,6 +117,16 @@ static HRESULT WINAPI PaletteImpl_InitializePredefined(IWICPalette *iface,
|
||||
colors[1] = 0xffffffff;
|
||||
break;
|
||||
|
||||
case WICBitmapPaletteTypeFixedGray4:
|
||||
count = 4;
|
||||
colors = HeapAlloc(GetProcessHeap(), 0, count * sizeof(WICColor));
|
||||
if (!colors) return E_OUTOFMEMORY;
|
||||
colors[0] = 0xff000000;
|
||||
colors[1] = 0xff555555;
|
||||
colors[2] = 0xffaaaaaa;
|
||||
colors[3] = 0xffffffff;
|
||||
break;
|
||||
|
||||
default:
|
||||
FIXME("(%p,%u,%d): stub\n", iface, type, add_transparent);
|
||||
return E_NOTIMPL;
|
||||
|
@ -159,6 +159,8 @@ static void test_predefined_palette(void)
|
||||
} td[] =
|
||||
{
|
||||
{ WICBitmapPaletteTypeFixedBW, 1, 1, 2, { 0xff000000, 0xffffffff } },
|
||||
{ WICBitmapPaletteTypeFixedGray4, 0, 1, 4,
|
||||
{ 0xff000000, 0xff555555, 0xffaaaaaa, 0xffffffff } },
|
||||
};
|
||||
IWICImagingFactory *factory;
|
||||
IWICPalette *palette;
|
||||
|
Loading…
Reference in New Issue
Block a user