Fix background corruption in scrolled wxHtmlWindow.

Draw the background on the entire virtual size, not just the currently shown
client size.

Closes #15047.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-02-19 23:13:21 +00:00
parent 005659f0ff
commit 4340a145d8

View File

@@ -1090,7 +1090,7 @@ void wxHtmlWindow::DoEraseBackground(wxDC& dc)
if ( m_bmpBg.IsOk() ) if ( m_bmpBg.IsOk() )
{ {
// draw the background bitmap tiling it over the entire window area // draw the background bitmap tiling it over the entire window area
const wxSize sz = GetClientSize(); const wxSize sz = GetVirtualSize();
const wxSize sizeBmp(m_bmpBg.GetWidth(), m_bmpBg.GetHeight()); const wxSize sizeBmp(m_bmpBg.GetWidth(), m_bmpBg.GetHeight());
for ( wxCoord x = 0; x < sz.x; x += sizeBmp.x ) for ( wxCoord x = 0; x < sz.x; x += sizeBmp.x )
{ {