fixing iphone build
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 18 Jun 2011 15:23:39 +0000 (15:23 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 18 Jun 2011 15:23:39 +0000 (15:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/graphics.cpp

index 70edc2f83fc316233ad3f373922dab5b7cf5fd35..4b1df9cdca5ade5d27a2ca9f2b4dc01a902c7372 100644 (file)
@@ -1804,7 +1804,11 @@ bool wxMacCoreGraphicsContext::SetInterpolationQuality(wxInterpolationQuality in
             quality = kCGInterpolationLow;
             break;
         case wxINTERPOLATION_GOOD:
+#if wxOSX_USE_COCOA_OR_CARBON
             quality = UMAGetSystemVersion() < 0x1060 ? kCGInterpolationHigh : (CGInterpolationQuality) 4 /*kCGInterpolationMedium only on 10.6*/;
+#else
+            quality = kCGInterpolationMedium;
+#endif
             break;
         case wxINTERPOLATION_BEST:
             quality = kCGInterpolationHigh;