X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f0875501313903140a41dca0ba6ee2d85ed0536c..3e1924dd5f5744c3e2a8973de9b3e4f372b7fd85:/src/msw/dcclient.cpp?ds=sidebyside diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index 1602140de7..3eff38d0d4 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -169,7 +169,8 @@ void wxClientDCImpl::InitDC() } // clip the DC to avoid overwriting the non client area - SetClippingRegion(wxPoint(0,0), m_window->GetClientSize()); + wxSize size = m_window->GetClientSize(); + DoSetClippingRegion(0, 0, size.x, size.y); #endif // __WXUNIVERSAL__ || __WXWINCE__ }