mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user