]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUniv/MSW compilation fix after wxDC changes
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 31 Jan 2008 21:56:10 +0000 (21:56 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 31 Jan 2008 21:56:10 +0000 (21:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dcclient.cpp

index 1602140de741c8fadb933936aa4179d6f40f735e..3eff38d0d4bbd01b181d52090bf2c6fb58537757 100644 (file)
@@ -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__
 }