[WIN32K:NTGDI] Mark DIB palettes with PAL_DIBSECTION flag

This is needed, because color translation works differently for DIB sections.
This commit is contained in:
Timo Kreuzer
2026-01-20 12:35:55 +02:00
parent 11c276109c
commit 3e7009a08e
+2 -2
View File
@@ -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,