X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b1801c19c82340be79810c8b7617b05caa0cd59..606b005fb2b535b34d1ca45d2d06ee86718e8b1c:/src/msw/region.cpp diff --git a/src/msw/region.cpp b/src/msw/region.cpp index 0e1cab3ea9..cb214071d0 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -76,8 +76,7 @@ public: */ wxRegion::wxRegion() { - m_refData = new wxRegionRefData; - M_REGION = ::CreateRectRgn(0, 0, 0, 0); + m_refData = (wxRegionRefData *)NULL; } wxRegion::wxRegion(WXHRGN hRegion) @@ -101,7 +100,7 @@ wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight) wxRegion::wxRegion(const wxRect& rect) { m_refData = new wxRegionRefData; - M_REGION = ::CreateRectRgn(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom()); + M_REGION = ::CreateRectRgn(rect.x, rect.y, rect.x + rect.width, rect.y + rect.height); } /*