From 322a77fc09df34b14894b7e39c9905434f7745fe Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Tue, 22 Dec 2009 16:02:49 +0000 Subject: [PATCH] [win32k] Remove palette flag validation for get/setPaletteEntries svn path=/trunk/; revision=44711 --- reactos/subsystems/win32/win32k/objects/palette.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/reactos/subsystems/win32/win32k/objects/palette.c b/reactos/subsystems/win32/win32k/objects/palette.c index 9226b1d81c5..61a50ec7ea7 100644 --- a/reactos/subsystems/win32/win32k/objects/palette.c +++ b/reactos/subsystems/win32/win32k/objects/palette.c @@ -847,13 +847,6 @@ IntGetPaletteEntries( return 0; } memcpy(pe, palGDI->IndexedColors + StartIndex, Entries * sizeof(PALETTEENTRY)); - for (numEntries = 0; numEntries < Entries; numEntries++) - { - if (pe[numEntries].peFlags & 0xF0) - { - pe[numEntries].peFlags = 0; - } - } } else { @@ -959,7 +952,6 @@ IntSetPaletteEntries( Entries = numEntries - Start; } memcpy(palGDI->IndexedColors + Start, pe, Entries * sizeof(PALETTEENTRY)); - PALETTE_ValidateFlags(palGDI->IndexedColors, palGDI->NumColors); PALETTE_UnlockPalette(palGDI); return Entries;