From: Václav Slavík <vslavik@fastmail.fm>
Date: Thu, 31 Jan 2008 21:56:10 +0000 (+0000)
Subject: wxUniv/MSW compilation fix after wxDC changes
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c7d6c56303bf5673372f091400aeaa79efb03d7c

wxUniv/MSW compilation fix after wxDC changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

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__
 }