]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/pen.mm
make it possible to create wxWindowDC for a hidden window
[wxWidgets.git] / src / cocoa / pen.mm
index b82e879cad28019684cfebc352d857b8ce593bf3..d133d90fcb1a219376afcc8f5093fbaf5ba9bbba 100644 (file)
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wxprec.h"
+
 #ifndef WX_PRECOMP
     #include "wx/pen.h"
+    #include "wx/bitmap.h"
+    #include "wx/colour.h"
 #endif //WX_PRECOMP
-#include "wx/bitmap.h"
-#include "wx/colour.h"
 
 #import <AppKit/NSColor.h>
 
@@ -303,7 +304,7 @@ void wxPen::SetColour(const wxColour& col)
     M_PENDATA->SetColour(col);
 }
 
-void wxPen::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
 {
     AllocExclusive();
     M_PENDATA->SetColour(wxColour(r, g, b));