X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5549e9f76fb5cbfb2a2190980983bcebea132a2e..e7ca6139d062c37cc7c056b6647097e999b714cd:/src/msw/region.cpp diff --git a/src/msw/region.cpp b/src/msw/region.cpp index 0d1b81aace..c91f276350 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -105,6 +105,10 @@ wxRegion::wxRegion(const wxRect& rect) 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 ( @@ -112,6 +116,7 @@ wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle) n, fillStyle == wxODDEVEN_RULE ? ALTERNATE : WINDING ); +#endif } /*