]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/bitmap.cpp
Common code for the same handling of wxSL_INVERSE.
[wxWidgets.git] / src / mac / carbon / bitmap.cpp
index 89a0e4998cd0ce4dc77d3ede0e913b29a04fff6b..28c71c4336e53ec727608d6e5f6fd6c5db68ae6e 100644 (file)
@@ -36,6 +36,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject )
 
 #include "wx/mac/uma.h"
 
+#include "wx/dcmemory.h"
+
 // Implementation Notes
 // -------------------- 
 //
@@ -240,7 +242,7 @@ void wxMacReleaseBitmapButton( ControlButtonContentInfo*info )
     {
         ReleaseIconRef(info->u.iconRef) ;
     }
-#if wxMAC_USE_CORE_GRAPHICS
+#if wxMAC_USE_CORE_GRAPHICS && MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2
     else if ( info->contentType == kControlContentCGImageRef )
     {
         CGImageRelease( info->u.imageRef ) ;