bool wxWindow::DoDrawBackground(wxDC& dc)
{
- // FIXME: leaving this code in leads to partial bg redraws sometimes under
- // MSW
+ // FIXME: Leaving this code in leads to partial bg redraws
+ // sometimes under MSW.
+ // The same happens under X11 because it has a clear
+ // region and an update region and these are sometimes
+ // different. RR.
wxRect rect;
-#ifndef __WXMSW__
+// #ifndef __WXMSW__
+#if 0
rect = GetUpdateRegion().GetBox();
if ( !rect.width && !rect.height )
#endif
void wxWindow::EraseBackground(wxDC& dc, const wxRect& rect)
{
// TODO: handle bg bitmaps here!
-
+
m_renderer->DrawBackground(dc, wxTHEME_BG_COLOUR(this), rect, GetStateFlags());
}