[ros-diffs] [tkreuzer] 41767: Remove useless function

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sat Jul 4 13:45:43 CEST 2009


Author: tkreuzer
Date: Sat Jul  4 15:45:42 2009
New Revision: 41767

URL: http://svn.reactos.org/svn/reactos?rev=41767&view=rev
Log:
Remove useless function

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/palette.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/palette.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/palette.c?rev=41767&r1=41766&r2=41767&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/palette.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/palette.c [iso-8859-1] Sat Jul  4 15:45:42 2009
@@ -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 @@
   { 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 @@
 #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 @@
     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;
     }
 



More information about the Ros-diffs mailing list