X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c40e41c4ed3127df0136077360a9de41b6192c8..4c7852186d48a5b8f406462c2c3fa020f0a052bb:/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. */