X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d15694e8cad1d44087323bd568ca33ff5b354f2c..60372b0d54379701d62edf5595a7dc25c48330e1:/src/osx/iphone/window.mm?ds=sidebyside diff --git a/src/osx/iphone/window.mm b/src/osx/iphone/window.mm index 0419937f2b..be5bf2bc60 100644 --- a/src/osx/iphone/window.mm +++ b/src/osx/iphone/window.mm @@ -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 )