]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/region.cpp
implemented IsFixedWidth() correctly for MSW
[wxWidgets.git] / src / msw / region.cpp
index 6a37460c6a38b1581cce7c62a2ba8e11bdc82a6e..c91f27635009bc17bebb451f20f0efdaf3e3c967 100644 (file)
@@ -103,6 +103,22 @@ 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)
+{
+#ifdef __WXMICROWIN__
+    m_refData = NULL;
+    M_REGION = NULL;
+#else
+    m_refData = new wxRegionRefData;
+    M_REGION = ::CreatePolygonRgn
+               (
+                    (POINT*)points,
+                    n,
+                    fillStyle == wxODDEVEN_RULE ? ALTERNATE : WINDING
+               );
+#endif
+}
+
 /*
  * Destroy the region.
  */