X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0989defa045fb64e325fc7b37b4dd2c8f21a2d8..90daa6cd4addce8ca6ba3f30d1637cab5568208a:/contrib/include/wx/ogl/drawn.h diff --git a/contrib/include/wx/ogl/drawn.h b/contrib/include/wx/ogl/drawn.h index f90f541089..0df56399a2 100644 --- a/contrib/include/wx/ogl/drawn.h +++ b/contrib/include/wx/ogl/drawn.h @@ -57,11 +57,11 @@ class WXDLLIMPEXP_OGL wxPseudoMetaFile: public wxObject inline void SetSize(double w, double h) { m_width = w; m_height = h; } - inline void SetFillBrush(wxBrush* brush) { m_fillBrush = brush; } - inline const wxBrush* GetFillBrush() const { return m_fillBrush; } + inline void SetFillBrush(const wxBrush* brush) { m_fillBrush = brush; } + inline wxBrush* GetFillBrush() const { return wx_const_cast(wxBrush*, m_fillBrush); } - inline void SetOutlinePen(wxPen* pen) { m_outlinePen = pen; } - inline const wxPen* GetOutlinePen() const { return m_outlinePen; } + inline void SetOutlinePen(const wxPen* pen) { m_outlinePen = pen; } + inline wxPen* GetOutlinePen() const { return wx_const_cast(wxPen*, m_outlinePen); } inline void SetOutlineOp(int op) { m_outlineOp = op; } inline int GetOutlineOp() const { return m_outlineOp; }