]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/region.cpp
new capture handling, can be turned off
[wxWidgets.git] / src / mac / carbon / region.cpp
index ab424534701419b84e8bea10166cd3d4c3e62a7e..3fb09a1ad27f2c20dae9ec455e599cf55049fe8b 100644 (file)
 #include "wx/gdicmn.h"
 #include "wx/mac/uma.h"
 
-#if !USE_SHARED_LIBRARY
-    IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
-    IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator, wxObject)
-#endif
+IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
+IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator, wxObject)
 
 //-----------------------------------------------------------------------------
 // wxRegionRefData implementation
@@ -428,7 +426,7 @@ OSStatus wxMacRegionToRectsSetterCallback (
     if (message == kQDRegionToRectsMsgParse)
     {
         RegionToRectsCallbackData *cb = (RegionToRectsCallbackData*) data ;
-        cb->m_rects[cb->m_current] = wxRect( rect->left , rect->top , rect->right - rect->left , rect->bottom - rect->top ) ;
+        cb->m_rects[cb->m_current++] = wxRect( rect->left , rect->top , rect->right - rect->left , rect->bottom - rect->top ) ;
     }
     return noErr;
 }