X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df707c27b3837ef17a0ede057e900638555525ce..844cada1622b2923754493a4c8eb91b82232093e:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 82fbdedf02..1924cc9fe2 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -3583,15 +3583,11 @@ void wxWindowGTK::GtkSendPaintEvents() } } } - else - - // if (!m_clearRegion.IsEmpty()) // Always send an erase event under GTK 1.2 + else // Always send an erase event under GTK 1.2 { wxWindowDC dc( (wxWindow*)this ); - if (m_clearRegion.IsEmpty()) - dc.SetClippingRegion( m_updateRegion ); - else - dc.SetClippingRegion( m_clearRegion ); + dc.SetDeviceClippingRegion( m_clearRegion.IsEmpty() ? m_updateRegion + : m_clearRegion ); wxEraseEvent erase_event( GetId(), &dc ); erase_event.SetEventObject( this );