[ros-diffs] [greatlrd] 28480: Remove NtGdiCreatePalette it was a ros specfify api in win32k syscall list. It have been replace with NtGdiCreatePaletteInternal

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Thu Aug 23 19:22:28 CEST 2007


Author: greatlrd
Date: Thu Aug 23 21:22:27 2007
New Revision: 28480

URL: http://svn.reactos.org/svn/reactos?rev=28480&view=rev
Log:
Remove NtGdiCreatePalette it was a ros specfify api in win32k syscall list. It have been replace with NtGdiCreatePaletteInternal

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/color.c
    trunk/reactos/subsystems/win32/win32k/objects/palobj.c
    trunk/reactos/subsystems/win32/win32k/w32ksvc.db

Modified: trunk/reactos/subsystems/win32/win32k/objects/color.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/color.c?rev=28480&r1=28479&r2=28480&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/color.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/color.c Thu Aug 23 21:22:27 2007
@@ -235,39 +235,10 @@
         }
     }
 
-   return NtGdiCreatePalette((LOGPALETTE *)&Palette);
-}
-
-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;
-}
+   return NtGdiCreatePaletteInternal((LOGPALETTE *)&Palette, Palette->palNumEntries);
+}
+
+
 
 /*
  * @implemented

Modified: trunk/reactos/subsystems/win32/win32k/objects/palobj.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/palobj.c?rev=28480&r1=28479&r2=28480&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/palobj.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/palobj.c Thu Aug 23 21:22:27 2007
@@ -172,7 +172,7 @@
     palPtr->palPalEntry[i].peFlags = 0;
   }
 
-  hpalette = NtGdiCreatePalette(palPtr);
+  hpalette = NtGdiCreatePaletteInternal(palPtr,NB_RESERVED_COLORS);
   ExFreePool(palPtr);
 
 #ifndef NO_MAPPING

Modified: trunk/reactos/subsystems/win32/win32k/w32ksvc.db
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/w32ksvc.db?rev=28480&r1=28479&r2=28480&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/w32ksvc.db (original)
+++ trunk/reactos/subsystems/win32/win32k/w32ksvc.db Thu Aug 23 21:22:27 2007
@@ -752,7 +752,6 @@
 NtGdiCopyEnhMetaFile                    2
 NtGdiCreateDIBitmap                     6
 NtGdiCreateEnhMetaFile                  4
-NtGdiCreatePalette                      1
 NtGdiCreatePolygonRgn                   3
 NtGdiCreatePolyPolygonRgn               4
 NtGdiCreateScalableFontResource         4




More information about the Ros-diffs mailing list