From d9b33d7001af25479a63df96ca2f130b2cbc21aa Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 1 Nov 2006 02:18:41 +0000 Subject: [PATCH] Buffered DCs now take non-const bitmaps git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_dc.i | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wxPython/src/_dc.i b/wxPython/src/_dc.i index 9dbb9a3dbc..2a590d547f 100644 --- a/wxPython/src/_dc.i +++ b/wxPython/src/_dc.i @@ -1552,7 +1552,7 @@ public: "); wxBufferedDC( wxDC* dc, - const wxBitmap& buffer=wxNullBitmap, + wxBitmap& buffer=wxNullBitmap, int style = wxBUFFER_CLIENT_AREA ); wxBufferedDC( wxDC* dc, const wxSize& area, @@ -1574,7 +1574,10 @@ associated with this object, if any.", ""); "Blits the buffer to the dc, and detaches the dc from the buffer (so it can be effectively used once only). This is usually only called in the destructor.", ""); - + + // Set and get the style + void SetStyle(int style); + int GetStyle() const; }; @@ -1608,7 +1611,7 @@ public: DocCtorStr( wxBufferedPaintDC( wxWindow *window, - const wxBitmap &buffer = wxNullBitmap, + wxBitmap &buffer = wxNullBitmap, int style = wxBUFFER_CLIENT_AREA), "Create a buffered paint DC. As with `wx.BufferedDC`, you may either provide the bitmap to be used for buffering or let this object create -- 2.47.2