X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edc1d330a5d8d7c2f684999516666496fc4794bb..40c08808592b90f4d321e058efb3ffcb6ec90db8:/src/gtk1/window.cpp?ds=sidebyside diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index eab8a8917f..2deaff54fe 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -3454,6 +3454,14 @@ void wxWindowGTK::GtkSendPaintEvents() else // if (!m_clearRegion.IsEmpty()) // always send an erase event { + // If the clear region is empty, and the update region isn't, + // then we're going to clear more than we repaint, + // so let's make sure the two regions are in sync. + if (m_clearRegion.IsEmpty() && !m_updateRegion.IsEmpty()) + { + m_clearRegion = m_updateRegion ; + } + wxWindowDC dc( (wxWindow*)this ); dc.SetClippingRegion( m_clearRegion );