Author: tkreuzer
Date: Fri Jul 10 17:40:36 2009
New Revision: 41840
URL:
http://svn.reactos.org/svn/reactos?rev=41840&view=rev
Log:
Add static palettes gpalRGB and gpalBGR. They will be used later.
Modified:
trunk/reactos/subsystems/win32/win32k/include/palette.h
trunk/reactos/subsystems/win32/win32k/objects/palette.c
Modified: trunk/reactos/subsystems/win32/win32k/include/palette.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/palette.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/palette.h [iso-8859-1] Fri Jul 10
17:40:36 2009
@@ -58,6 +58,9 @@
HDEV hPDev;
} PALETTE, *PPALETTE;
+extern PALETTE gpalRGB, gpalBGR;
+
+
HPALETTE FASTCALL PALETTE_AllocPalette(ULONG Mode,
ULONG NumColors,
ULONG *Colors,
Modified: trunk/reactos/subsystems/win32/win32k/objects/palette.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/palette.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/palette.c [iso-8859-1] Fri Jul 10
17:40:36 2009
@@ -13,6 +13,8 @@
#include <debug.h>
static UINT SystemPaletteUse = SYSPAL_NOSTATIC; /* the program need save the pallete and
restore it */
+
+PALETTE gpalRGB, gpalBGR;
const PALETTEENTRY g_sysPalTemplate[NB_RESERVED_COLORS] =
{
@@ -97,6 +99,16 @@
#endif
/* palette_size = visual->map_entries; */
+
+ gpalRGB.Mode = PAL_RGB;
+ gpalRGB.RedMask = RGB(0xFF, 0x00, 0x00);
+ gpalRGB.GreenMask = RGB(0x00, 0xFF, 0x00);
+ gpalRGB.BlueMask = RGB(0x00, 0x00, 0xFF);
+
+ gpalBGR.Mode = PAL_BGR;
+ gpalBGR.RedMask = RGB(0x00, 0x00, 0xFF);
+ gpalBGR.GreenMask = RGB(0x00, 0xFF, 0x00);
+ gpalBGR.BlueMask = RGB(0xFF, 0x00, 0x00);
return hpalette;
}