From 0e082c0416b49dede36e5012ec875e6bb41d110c Mon Sep 17 00:00:00 2001 From: Akihiro Sagawa Date: Thu, 8 Nov 2018 22:17:06 +0900 Subject: [PATCH] gdiplus: Add 4bppIndexed to the list of supported formats. Signed-off-by: Akihiro Sagawa Signed-off-by: Vincent Povirk Signed-off-by: Alexandre Julliard --- dlls/gdiplus/image.c | 1 + dlls/gdiplus/tests/image.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index ccfa165013f..2e844cfcc58 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -55,6 +55,7 @@ static const struct { { &GUID_WICPixelFormatBlackWhite, PixelFormat1bppIndexed, WICBitmapPaletteTypeFixedBW }, { &GUID_WICPixelFormat1bppIndexed, PixelFormat1bppIndexed, WICBitmapPaletteTypeFixedBW }, + { &GUID_WICPixelFormat4bppIndexed, PixelFormat4bppIndexed, WICBitmapPaletteTypeFixedHalftone8 }, { &GUID_WICPixelFormat8bppGray, PixelFormat8bppIndexed, WICBitmapPaletteTypeFixedGray256 }, { &GUID_WICPixelFormat8bppIndexed, PixelFormat8bppIndexed, WICBitmapPaletteTypeFixedHalftone256 }, { &GUID_WICPixelFormat16bppBGR555, PixelFormat16bppRGB555, WICBitmapPaletteTypeFixedHalftone256 }, diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index 41ec4dcaa6c..b31f32e1fa8 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -5213,7 +5213,7 @@ static void test_png_color_formats(void) { 0, 0 }}}, { 4, PNG_COLOR_TYPE_PALETTE, {{ PixelFormat32bppARGB, ImageFlagsColorSpaceRGB }, - { PixelFormat4bppIndexed, ImageFlagsColorSpaceRGB, TRUE }, + { PixelFormat4bppIndexed, ImageFlagsColorSpaceRGB }, { 0, 0 }}}, { 8, PNG_COLOR_TYPE_PALETTE, {{ PixelFormat32bppARGB, ImageFlagsColorSpaceRGB },