git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74248
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
double wxNonOwnedWindowCocoaImpl::GetMagnificationFactor() const
{
double wxNonOwnedWindowCocoaImpl::GetMagnificationFactor() const
{
- return [m_macWindow backingScaleFactor];
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
+ if ( [ m_macWindow respondsToSelector:@selector(backingScaleFactor) ] )
+ return [m_macWindow backingScaleFactor];
+ else
+#endif
+ return 1.0;
}
bool wxNonOwnedWindowCocoaImpl::IsActive()
}
bool wxNonOwnedWindowCocoaImpl::IsActive()