]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/region.cpp
don't include windows.h unless neccessary
[wxWidgets.git] / src / msw / region.cpp
index 0d1b81aacee2528d0bbf7790c7b86afe275d5902..c91f27635009bc17bebb451f20f0efdaf3e3c967 100644 (file)
@@ -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
 }
 
 /*