]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/palette.cpp
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / src / msw / palette.cpp
index a9c9fc8056ea2c5b25976f4cb294369df053bf42..faa896b01975cba12e5376a15a1cb692845a58f0 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Julian Smart
 // Modified by:
 // Created:     04/01/98
-// RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -32,9 +31,9 @@ public:
     wxPaletteRefData() { Init(); }
 
     wxPaletteRefData(int n,
-                     unsigned char *red,
-                     unsigned char *green,
-                     unsigned char *blue)
+                     const unsigned char *red,
+                     const unsigned char *green,
+                     const unsigned char *blue)
     {
         Init();
 
@@ -117,9 +116,9 @@ IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject)
 #define M_PALETTEDATA ((wxPaletteRefData *)m_refData)
 
 bool wxPalette::Create(int n,
-                       unsigned char *red,
-                       unsigned char *green,
-                       unsigned char *blue)
+                       const unsigned char *red,
+                       const unsigned char *green,
+                       const unsigned char *blue)
 {
     m_refData = new wxPaletteRefData(n, red, green, blue);