]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/window.cpp
don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files...
[wxWidgets.git] / src / x11 / window.cpp
index b437ef79f65eb8ac2d55262b88a69aac1e8791bc..6cae3175d72ad30eb58bd3e2cdf935322565bfc5 100644 (file)
@@ -1206,7 +1206,7 @@ void wxWindowX11::SendEraseEvents()
     if (m_clearRegion.IsEmpty()) return;
 
     wxClientDC dc( (wxWindow*)this );
-    dc.SetClippingRegion( m_clearRegion );
+    dc.SetDeviceClippingRegion( m_clearRegion );
 
     wxEraseEvent erase_event( GetId(), &dc );
     erase_event.SetEventObject( this );