fixing sdk compilo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2013-06-17 19:43:46 +00:00
parent f86190702b
commit 35f95708e3

View File

@@ -1037,7 +1037,12 @@ void wxNonOwnedWindowCocoaImpl::WindowToScreen( int *x, int *y )
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()