]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/iphone/window.mm
Applied Blit system options optimization to StretchBlit
[wxWidgets.git] / src / osx / iphone / window.mm
index 0419937f2bd08e54952784950df86d0b1ab79b60..be5bf2bc6065ac715831457d4b25f93abd723f38 100644 (file)
@@ -595,7 +595,10 @@ void wxWidgetIPhoneImpl::SetControlSize( wxWindowVariant variant )
 
 float wxWidgetIPhoneImpl::GetContentScaleFactor() const 
 {
-    return [m_osxView contentScaleFactor];
+    if ( [m_osxView respondsToSelector:@selector(contentScaleFactor) ])
+        return [m_osxView contentScaleFactor];
+    else 
+        return 1.0;
 }
 
 void wxWidgetIPhoneImpl::SetFont( const wxFont & font , const wxColour& foreground , long windowStyle, bool ignoreBlack )