Author: greatlrd
Date: Thu Aug 23 20:19:51 2007
New Revision: 28477
URL:
http://svn.reactos.org/svn/reactos?rev=28477&view=rev
Log:
Fix : CreatePalette@4 calling NtGdiCreatePaletteInternal
Modified:
trunk/reactos/dll/win32/gdi32/gdi32.def
trunk/reactos/dll/win32/gdi32/objects/palette.c
Modified: trunk/reactos/dll/win32/gdi32/gdi32.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.def?…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/gdi32.def (original)
+++ trunk/reactos/dll/win32/gdi32/gdi32.def Thu Aug 23 20:19:51 2007
@@ -3,7 +3,6 @@
; gdi32.def
;
; ReactOS Operating System
-;
; From Anders Norlander's w32api-0.1.5 gdi32.def.
;
LIBRARY gdi32.dll
@@ -47,6 +46,7 @@
CopyMetaFileW@8
CreateBitmap@20
CreateBitmapIndirect@4
+CreateBrushIndirect@4
CreateColorSpaceA@4
CreateColorSpaceW@4
CreateCompatibleBitmap@12
@@ -66,13 +66,6 @@
CreateFontIndirectA@4
CreateFontIndirectExA@4
CreateFontIndirectExW@4
-
-ClearBitmapAttributes@8
-ClearBrushAttributes@8
-CopyMetaFileA@8
-CopyMetaFileW@8
-CreateBrushIndirect@4
-CreateDIBSection@24
CreateFontIndirectW@4
CreateFontW@56
CreateHalftonePalette@4=NtGdiCreateHalftonePalette@4
@@ -81,8 +74,11 @@
CreateICW@16
CreateMetaFileA@4
CreateMetaFileW@4
-CreatePalette@4=NtGdiCreatePalette@4
+CreatePalette@4
CreatePatternBrush@4
+
+ClearBitmapAttributes@8
+ClearBrushAttributes@8
CreatePen@12
CreatePenIndirect@4
CreatePolyPolygonRgn@16=NtGdiCreatePolyPolygonRgn@16
Modified: trunk/reactos/dll/win32/gdi32/objects/palette.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/pa…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/palette.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/palette.c Thu Aug 23 20:19:51 2007
@@ -11,6 +11,13 @@
const PALETTEENTRY *ppe)
{
return NtGdiDoPalette(hpal, iStartIndex, cEntries, (PALETTEENTRY*)ppe, GdiPalAnimate,
TRUE);
+}
+
+HPALETTE
+WINAPI
+CreatePalette(CONST LOGPALETTE * plpal)
+{
+ return NtGdiCreatePaletteInternal((LPLOGPALETTE)plpal, plpal->palNumEntries);
}
UINT