X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/005659f0ffe0b280c3f800a5706b93fe9b78276e..4340a145d8ad49639b4955fa8a2a257a46c95d60:/src/html/htmlwin.cpp diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 52ba2a51c4..11a4d78bf9 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -1090,7 +1090,7 @@ void wxHtmlWindow::DoEraseBackground(wxDC& dc) if ( m_bmpBg.IsOk() ) { // 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()); for ( wxCoord x = 0; x < sz.x; x += sizeBmp.x ) {