Restored old wxBufferedDC functionality until it can be decided how to

correct the current issues without making things worse.  Updated docs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-02-21 19:09:59 +00:00
parent 5c45e86bac
commit 7775e41fd7
2 changed files with 14 additions and 18 deletions

View File

@@ -81,9 +81,9 @@ public:
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;
}
@@ -123,6 +123,8 @@ public:
wxBufferedPaintDC(wxWindow *window, const wxBitmap& buffer = wxNullBitmap)
: m_paintdc(window)
{
window->PrepareDC( m_paintdc );
if( buffer != wxNullBitmap )
Init(&m_paintdc, buffer);
else