deprecate wxDC::SetClippingRegion(wxRegion) overload and replace it with SetDeviceClippingRegion() to avoid confusion due to use of different kind of coordinates in this and other overloads of the same function; also rename wxDCImpl::DoSetClippingRegionAsRegion() to DoSetDeviceClippingRegion(); finally use bounding box of the region passed to wxDCClipper ctor to avoid interpreting coordinates differently for different ctors of the same class (see #8970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -525,7 +525,7 @@ wxMSWDCImpl::DoGetClippingBox(wxCoord *x, wxCoord *y, wxCoord *w, wxCoord *h) co
|
||||
wxDCImpl::DoGetClippingBox(x, y, w, h);
|
||||
}
|
||||
|
||||
// common part of DoSetClippingRegion() and DoSetClippingRegionAsRegion()
|
||||
// common part of DoSetClippingRegion() and DoSetDeviceClippingRegion()
|
||||
void wxMSWDCImpl::SetClippingHrgn(WXHRGN hrgn)
|
||||
{
|
||||
wxCHECK_RET( hrgn, wxT("invalid clipping region") );
|
||||
@@ -593,7 +593,7 @@ void wxMSWDCImpl::DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h
|
||||
}
|
||||
}
|
||||
|
||||
void wxMSWDCImpl::DoSetClippingRegionAsRegion(const wxRegion& region)
|
||||
void wxMSWDCImpl::DoSetDeviceClippingRegion(const wxRegion& region)
|
||||
{
|
||||
SetClippingHrgn(region.GetHRGN());
|
||||
}
|
||||
|
Reference in New Issue
Block a user