From 08c4a8a9dd5d6f50a99aeca0999c7ae682ae76e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 20 Oct 2001 22:09:24 +0000 Subject: [PATCH] wxRegion fixes (off by one) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mgl/region.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mgl/region.cpp b/src/mgl/region.cpp index ad4ace5b7f..7629ef45fc 100644 --- a/src/mgl/region.cpp +++ b/src/mgl/region.cpp @@ -78,14 +78,14 @@ wxRegion::wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight) { m_refData = new wxRegionRefData; - MGLRect rect(topLeft.x, topLeft.y, bottomRight.x, bottomRight.y); + MGLRect rect(topLeft.x, topLeft.y, bottomRight.x+1, bottomRight.y+1); M_REGION = rect; } wxRegion::wxRegion(const wxRect& r) { m_refData = new wxRegionRefData; - MGLRect rect(r.GetLeft(), r.GetTop(), r.GetRight(), r.GetBottom()); + MGLRect rect(r.GetLeft(), r.GetTop(), r.GetRight()+1, r.GetBottom()+1); M_REGION = rect; } -- 2.49.0