mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
Remove NtGdiCreatePalette it was a ros specfify api in win32k syscall list. It have been replace with NtGdiCreatePaletteInternal
svn path=/trunk/; revision=28480
This commit is contained in:
parent
e60a2c2441
commit
5e95a39358
|
@ -235,39 +235,10 @@ HPALETTE STDCALL NtGdiCreateHalftonePalette(HDC hDC)
|
|||
}
|
||||
}
|
||||
|
||||
return NtGdiCreatePalette((LOGPALETTE *)&Palette);
|
||||
return NtGdiCreatePaletteInternal((LOGPALETTE *)&Palette, Palette->palNumEntries);
|
||||
}
|
||||
|
||||
HPALETTE STDCALL NtGdiCreatePalette(CONST PLOGPALETTE palette)
|
||||
{
|
||||
PPALGDI PalGDI;
|
||||
|
||||
HPALETTE NewPalette = PALETTE_AllocPalette(
|
||||
PAL_INDEXED,
|
||||
palette->palNumEntries,
|
||||
(PULONG)palette->palPalEntry,
|
||||
0, 0, 0);
|
||||
|
||||
if (NewPalette == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PalGDI = (PPALGDI) PALETTE_LockPalette(NewPalette);
|
||||
if (PalGDI != NULL)
|
||||
{
|
||||
PALETTE_ValidateFlags(PalGDI->IndexedColors, PalGDI->NumColors);
|
||||
PalGDI->logicalToSystem = NULL;
|
||||
PALETTE_UnlockPalette(PalGDI);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FIXME - Handle PalGDI == NULL!!!! */
|
||||
DPRINT1("waring PalGDI is NULL \n");
|
||||
}
|
||||
|
||||
return NewPalette;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
|
|
|
@ -172,7 +172,7 @@ HPALETTE FASTCALL PALETTE_Init(VOID)
|
|||
palPtr->palPalEntry[i].peFlags = 0;
|
||||
}
|
||||
|
||||
hpalette = NtGdiCreatePalette(palPtr);
|
||||
hpalette = NtGdiCreatePaletteInternal(palPtr,NB_RESERVED_COLORS);
|
||||
ExFreePool(palPtr);
|
||||
|
||||
#ifndef NO_MAPPING
|
||||
|
|
|
@ -752,7 +752,6 @@ NtGdiColorMatchToTarget 3
|
|||
NtGdiCopyEnhMetaFile 2
|
||||
NtGdiCreateDIBitmap 6
|
||||
NtGdiCreateEnhMetaFile 4
|
||||
NtGdiCreatePalette 1
|
||||
NtGdiCreatePolygonRgn 3
|
||||
NtGdiCreatePolyPolygonRgn 4
|
||||
NtGdiCreateScalableFontResource 4
|
||||
|
|
Loading…
Reference in a new issue