mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:41:42 +00:00
Remove useless function
svn path=/trunk/; revision=41767
This commit is contained in:
parent
bf334e3e90
commit
954c70f444
1 changed files with 4 additions and 10 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
static UINT SystemPaletteUse = SYSPAL_NOSTATIC; /* the program need save the pallete and restore it */
|
||||
|
||||
const PALETTEENTRY COLOR_sysPalTemplate[NB_RESERVED_COLORS] =
|
||||
const PALETTEENTRY g_sysPalTemplate[NB_RESERVED_COLORS] =
|
||||
{
|
||||
// first 10 entries in the system palette
|
||||
// red green blue flags
|
||||
|
@ -45,11 +45,6 @@ const PALETTEENTRY COLOR_sysPalTemplate[NB_RESERVED_COLORS] =
|
|||
{ 0xff, 0xff, 0xff, PC_SYS_USED } // last 10
|
||||
};
|
||||
|
||||
const PALETTEENTRY* FASTCALL COLOR_GetSystemPaletteTemplate(void)
|
||||
{
|
||||
return (const PALETTEENTRY*)&COLOR_sysPalTemplate;
|
||||
}
|
||||
|
||||
INT APIENTRY COLOR_PaletteLookupPixel(PALETTEENTRY *palPalEntry, INT size,
|
||||
XLATEOBJ *XlateObj, COLORREF col, BOOL skipReserved)
|
||||
{
|
||||
|
@ -106,7 +101,6 @@ HPALETTE FASTCALL PALETTE_Init(VOID)
|
|||
#ifndef NO_MAPPING
|
||||
PALOBJ *palObj;
|
||||
#endif
|
||||
const PALETTEENTRY* __sysPalTemplate = (const PALETTEENTRY*)COLOR_GetSystemPaletteTemplate();
|
||||
|
||||
// create default palette (20 system colors)
|
||||
palPtr = ExAllocatePoolWithTag(PagedPool,
|
||||
|
@ -119,9 +113,9 @@ HPALETTE FASTCALL PALETTE_Init(VOID)
|
|||
palPtr->palNumEntries = NB_RESERVED_COLORS;
|
||||
for (i=0; i<NB_RESERVED_COLORS; i++)
|
||||
{
|
||||
palPtr->palPalEntry[i].peRed = __sysPalTemplate[i].peRed;
|
||||
palPtr->palPalEntry[i].peGreen = __sysPalTemplate[i].peGreen;
|
||||
palPtr->palPalEntry[i].peBlue = __sysPalTemplate[i].peBlue;
|
||||
palPtr->palPalEntry[i].peRed = g_sysPalTemplate[i].peRed;
|
||||
palPtr->palPalEntry[i].peGreen = g_sysPalTemplate[i].peGreen;
|
||||
palPtr->palPalEntry[i].peBlue = g_sysPalTemplate[i].peBlue;
|
||||
palPtr->palPalEntry[i].peFlags = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue