From 31ff08c6f634edc42e00d4156bc84d0b4fc8565c Mon Sep 17 00:00:00 2001 From: AlexeyLushnikov Date: Wed, 6 Nov 2024 16:20:56 +0300 Subject: [PATCH] gdi32: Add support of monochrome bitmap to get_bitmap_info() --- dlls/gdi32/emfdc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/gdi32/emfdc.c b/dlls/gdi32/emfdc.c index e48da848a96..d936a0e718b 100644 --- a/dlls/gdi32/emfdc.c +++ b/dlls/gdi32/emfdc.c @@ -201,6 +201,10 @@ static UINT get_bitmap_info( HDC *hdc, HBITMAP *bitmap, BITMAPINFO *info ) ((DWORD *)dib_info->bmiColors)[1] = 0x00ff00; ((DWORD *)dib_info->bmiColors)[2] = 0x0000ff; break; + case 1: + ((DWORD *)dib_info->bmiColors)[0] = 0x000000; + ((DWORD *)dib_info->bmiColors)[1] = 0xffffff; + break; default: if (dib_info->bmiHeader.biBitCount > 8) break; if (!(palette = GetCurrentObject( *hdc, OBJ_PAL ))) return FALSE;