]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use deprecated function
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jul 2008 01:33:04 +0000 (01:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jul 2008 01:33:04 +0000 (01:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk1/window.cpp

index 82fbdedf02d0ebe767dd9c5aeadf856f1c992cb6..1924cc9fe2691ba537b34e4f45c5956b7cf2f5bb 100644 (file)
@@ -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 );