fixing width/height (were negative) thanks to Werner Smekal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,8 +89,8 @@ wxRegion::wxRegion(long x, long y, long w, long h)
|
|||||||
wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
|
wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
|
||||||
{
|
{
|
||||||
m_refData = new wxRegionRefData(topLeft.x , topLeft.y ,
|
m_refData = new wxRegionRefData(topLeft.x , topLeft.y ,
|
||||||
topLeft.x - bottomRight.x ,
|
bottomRight.x - topLeft.x,
|
||||||
topLeft.y - bottomRight.y);
|
bottomRight.y - topLeft.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxRegion::wxRegion(const wxRect& rect)
|
wxRegion::wxRegion(const wxRect& rect)
|
||||||
|
Reference in New Issue
Block a user