]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/dcclient.cpp
Moved the cleanup code to an EVT_WINDOW_DESTROY handler.
[wxWidgets.git] / src / mgl / dcclient.cpp
index 2afdbad27956fb864bb76d6af7a1ac8d681acfda..4e05209e9304a66440b813603b1a6f629c70d0f9 100644 (file)
@@ -69,5 +69,6 @@ wxClientDC::wxClientDC(wxWindow *win) : wxWindowDC(win)
 {
     wxRect r = m_wnd->GetClientRect();
     m_globalClippingRegion.Intersect(r);
+    SetClippingRegion(m_globalClippingRegion);
     SetDeviceOrigin(r.x, r.y);
 }