-
-// ==============================================================
-// Double buffered PaintDC.
-// --------------------------------------------------------------
-
-wxBufferedPaintDC::wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer )
- : m_paintdc( window )
-{
- window->PrepareDC( m_paintdc );
-
- if( buffer != wxNullBitmap )
- Init( &m_paintdc, buffer );
- else
- Init( &m_paintdc, window->GetClientSize() );
-}
-
-wxBufferedPaintDC::~wxBufferedPaintDC()
-{
- // We must UnMask here, else by the time the base class
- // does it, the PaintDC will have already been destroyed.
-
- UnMask();
-}
-
-
-// vi:sts=4:sw=4:et