X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a17a79bac3f7742a351b719a4692c5e6d5641969..f90566f5c386e6e5d80deecad9052ec53a0394ba:/src/univ/winuniv.cpp diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index d8ff488e5a..9662665813 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -265,10 +265,14 @@ void wxWindow::OnPaint(wxPaintEvent& event) 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 @@ -298,7 +302,7 @@ bool wxWindow::DoDrawBackground(wxDC& dc) void wxWindow::EraseBackground(wxDC& dc, const wxRect& rect) { // TODO: handle bg bitmaps here! - + m_renderer->DrawBackground(dc, wxTHEME_BG_COLOUR(this), rect, GetStateFlags()); }