]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/region.cpp
Updated to new PyCrust
[wxWidgets.git] / src / msw / region.cpp
index 6a37460c6a38b1581cce7c62a2ba8e11bdc82a6e..0d1b81aacee2528d0bbf7790c7b86afe275d5902 100644 (file)
@@ -103,6 +103,17 @@ wxRegion::wxRegion(const wxRect& rect)
     M_REGION = ::CreateRectRgn(rect.x, rect.y, rect.x + rect.width, rect.y + rect.height);
 }
 
+wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle)
+{
+    m_refData = new wxRegionRefData;
+    M_REGION = ::CreatePolygonRgn
+               (
+                    (POINT*)points,
+                    n,
+                    fillStyle == wxODDEVEN_RULE ? ALTERNATE : WINDING
+               );
+}
+
 /*
  * Destroy the region.
  */