]> git.saurik.com Git - wxWidgets.git/commitdiff
trying to fix breakage in wxBufferedPaintDC after the last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Feb 2004 21:50:39 +0000 (21:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Feb 2004 21:50:39 +0000 (21:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dcbuffer.h

index 37988bef0404d9b66afbe7c765ffd38724a03654..7cf03a4a66d969b38d8f1b2e2863f2cf9702d63c 100644 (file)
@@ -110,17 +110,20 @@ class WXDLLIMPEXP_ADV wxBufferedPaintDC : public wxBufferedDC
 public:
     // this ctor creates a bitmap of the size of the window for buffering
     wxBufferedPaintDC(wxWindow *window, int flags = wxBUFFER_DC_DEFAULT)
-        : wxBufferedDC(&m_paintdc, window->GetClientSize(), flags),
-          m_paintdc(window)
+        : m_paintdc(window)
     {
         Prepare(window);
+
+        Init(&m_paintdc, window->GetClientSize(), flags);
     }
 
     // the bitmap must be valid here
     wxBufferedPaintDC(wxWindow *window, const wxBitmap& buffer)
-        : wxBufferedDC(&m_paintdc, buffer)
+        : m_paintdc(window)
     {
         Prepare(window);
+
+        Init(&m_paintdc, buffer);
     }
 
     // default copy ctor ok.