- 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);
+}
+
+wxRegion::wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode fillStyle)
+{
+#if defined(__WXMICROWIN__) || defined(__WXWINCE__)
+ wxUnusedVar(n);
+ wxUnusedVar(points);
+ wxUnusedVar(fillStyle);
+ m_refData = NULL;
+ M_REGION = NULL;
+#else
+ m_refData = new wxRegionRefData;
+ M_REGION = ::CreatePolygonRgn
+ (
+ (POINT*)points,
+ n,
+ fillStyle == wxODDEVEN_RULE ? ALTERNATE : WINDING
+ );
+#endif