]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/pen.cpp
compute scrollbar widths in a more standard way, get rid of redundant m_hasScrolling...
[wxWidgets.git] / src / x11 / pen.cpp
index a843cdce9fb977eace7f93945d05c6326cf22f9f..079472dbdf59b1b5cb424667147c880ad4b574b4 100644 (file)
 // for compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/utils.h"
 #include "wx/pen.h"
-#include "wx/colour.h"
-#include "wx/bitmap.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/utils.h"
+    #include "wx/bitmap.h"
+    #include "wx/colour.h"
+#endif
 
 //-----------------------------------------------------------------------------
 // wxPen
 //-----------------------------------------------------------------------------
 
-class wxPenRefData: public wxObjectRefData
+class wxPenRefData : public wxGDIRefData
 {
 public:
     wxPenRefData()
@@ -88,12 +91,12 @@ wxPen::~wxPen()
     // m_refData unrefed in ~wxObject
 }
 
-wxObjectRefData *wxPen::CreateRefData() const
+wxGDIRefData *wxPen::CreateGDIRefData() const
 {
     return new wxPenRefData;
 }
 
-wxObjectRefData *wxPen::CloneRefData(const wxObjectRefData *data) const
+wxGDIRefData *wxPen::CloneGDIRefData(const wxGDIRefData *data) const
 {
     return new wxPenRefData(*(wxPenRefData *)data);
 }
@@ -122,7 +125,7 @@ void wxPen::SetDashes( int number_of_dashes, const wxDash *dash )
     M_PENDATA->m_dash = (wxX11Dash *)dash; // TODO
 }
 
-void wxPen::SetColour( const unsigned char red, const unsigned char green, const unsigned char blue )
+void wxPen::SetColour( unsigned char red, unsigned char green, unsigned char blue )
 {
     AllocExclusive();
 
@@ -147,7 +150,7 @@ void wxPen::SetStipple( wxBitmap *stipple )
 {
     AllocExclusive();
 
-    M_PENDATA->m_stipple = *stipple;;
+    M_PENDATA->m_stipple = *stipple;
 }
 
 void wxPen::SetStyle( int style )