wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
{
m_refData = new wxRegionRefData(topLeft.x , topLeft.y ,
- topLeft.x - bottomRight.x ,
- topLeft.y - bottomRight.y);
+ bottomRight.x - topLeft.x,
+ bottomRight.y - topLeft.y);
}
wxRegion::wxRegion(const wxRect& rect)
// There doesn't seem to be any native function for checking the equality
// of HIShapes so we compute their differences to determine if they are
// equal.
- wxRegion r(this);
+ wxRegion r(*this);
r.Subtract(region);
if ( !r.IsEmpty() )