mirror of
https://github.com/reactos/reactos.git
synced 2025-06-26 11:39:43 +00:00
[win32k] Remove palette flag validation for get/setPaletteEntries
svn path=/trunk/; revision=44711
This commit is contained in:
parent
4c1be6442f
commit
322a77fc09
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue