// Purpose: Region handling for wxWindows/MGL
// Author: Vaclav Slavik
// RCS-ID: $Id$
-// Copyright: (c) 2001 Vaclav Slavik
+// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
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;
}
static wxRegionRectList *gs_rectList;
-static void wxMGL_region_callback(const rect_t *r)
+static void MGLAPI wxMGL_region_callback(const rect_t *r)
{
gs_rectList->Append(new wxRect(r->left, r->top,
r->right - r->left, r->bottom - r->top));