From 35f95708e3aee076d779ba31c6b871afb5c50daf Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 17 Jun 2013 19:43:46 +0000 Subject: [PATCH] fixing sdk compilo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/nonownedwnd.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/osx/cocoa/nonownedwnd.mm b/src/osx/cocoa/nonownedwnd.mm index 7ca8cf85f5..3901a71c69 100644 --- a/src/osx/cocoa/nonownedwnd.mm +++ b/src/osx/cocoa/nonownedwnd.mm @@ -1037,7 +1037,12 @@ void wxNonOwnedWindowCocoaImpl::WindowToScreen( int *x, int *y ) 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() -- 2.47.2