X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c40e41c4ed3127df0136077360a9de41b6192c8..67e49a98bbba6793cf1e344477bee9e46d4d5c71:/src/msw/region.cpp?ds=sidebyside diff --git a/src/msw/region.cpp b/src/msw/region.cpp index 6a37460c6a..0d1b81aace 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -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. */