From 3e7009a08eeb93fb9ff05aa8417a62f8ec81a4ab Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 17 Dec 2025 13:59:55 +0200 Subject: [PATCH] [WIN32K:NTGDI] Mark DIB palettes with PAL_DIBSECTION flag This is needed, because color translation works differently for DIB sections. --- win32ss/gdi/ntgdi/dibobj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32ss/gdi/ntgdi/dibobj.c b/win32ss/gdi/ntgdi/dibobj.c index 2e8acd302a4..f7d52ab9e49 100644 --- a/win32ss/gdi/ntgdi/dibobj.c +++ b/win32ss/gdi/ntgdi/dibobj.c @@ -63,7 +63,7 @@ CreateDIBPalette( cColors = 1 << cBitsPixel; /* Allocate the palette */ - ppal = PALETTE_AllocPalette(PAL_INDEXED, + ppal = PALETTE_AllocPalette(PAL_INDEXED | PAL_DIBSECTION, cColors, NULL, 0, @@ -221,7 +221,7 @@ CreateDIBPalette( } /* Allocate the bitfield palette */ - ppal = PALETTE_AllocPalette(PAL_BITFIELDS, + ppal = PALETTE_AllocPalette(PAL_BITFIELDS | PAL_DIBSECTION, 0, NULL, flRedMask,