wxASSERT_MSG( m_dc != 0,
_T("No underlying DC associated with wxBufferedDC (anymore)") );
- m_dc->Blit( m_dc->DeviceToLogicalX(0), m_dc->DeviceToLogicalY(0),
+ m_dc->Blit( 0, 0,
m_buffer.GetWidth(), m_buffer.GetHeight(), this,
- DeviceToLogicalX(0), DeviceToLogicalY(0) );
+ 0, 0 );
m_dc = NULL;
}
wxBufferedPaintDC(wxWindow *window, const wxBitmap& buffer = wxNullBitmap)
: m_paintdc(window)
{
+ window->PrepareDC( m_paintdc );
+
if( buffer != wxNullBitmap )
Init(&m_paintdc, buffer);
else