copy the right part of the existing background to the memory buffer (corrects junk during scrolling introduced by last change)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-13 16:08:10 +00:00
parent a947a1e5e8
commit 7f461f8a05

View File

@@ -872,7 +872,6 @@ void wxHtmlWindow::OnPaint(wxPaintEvent& WXUNUSED(event))
if ( !m_backBuffer )
m_backBuffer = new wxBitmap(sz.x, sz.y);
dcm.SelectObject(*m_backBuffer);
PrepareDC(dcm);
// preserve the existing background, otherwise we'd erase anything the user
// code had drawn in its EVT_ERASE_BACKGROUND handler when we do the Blit
@@ -882,6 +881,7 @@ void wxHtmlWindow::OnPaint(wxPaintEvent& WXUNUSED(event))
&dc,
0, rect.GetTop());
PrepareDC(dcm);
dcm.SetMapMode(wxMM_TEXT);
dcm.SetBackgroundMode(wxTRANSPARENT);