]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/rgncmn.cpp
use guard classes automatically restoring the old state in their dtor instead of...
[wxWidgets.git] / src / common / rgncmn.cpp
index a18bb207082b0fedc671ca37353b04ec63daec13..f16024cbb730a9faa6ce7121b0dacb82b5cd81cd 100644 (file)
@@ -65,7 +65,7 @@ wxBitmap wxRegionBase::ConvertToBitmap() const
     dc.SelectObject(bmp);
     dc.SetBackground(*wxBLACK_BRUSH);
     dc.Clear();
-    dc.SetClippingRegion(*wx_static_cast(const wxRegion *, this));
+    dc.SetDeviceClippingRegion(*static_cast<const wxRegion *>(this));
     dc.SetBackground(*wxWHITE_BRUSH);
     dc.Clear();
     dc.SelectObject(wxNullBitmap);