From 3d99ba125f74f77b4deea9a6385bcc5ffd6849b2 Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Fri, 14 Dec 2012 08:48:48 +0000 Subject: [PATCH] OSX/nativePixel: fix compile for OSX < 10.7 --- intern/ghost/intern/GHOST_WindowCocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index e044967fdef..3e967e034c4 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -578,13 +578,13 @@ GHOST_WindowCocoa::GHOST_WindowCocoa( setDrawingContextType(type); updateDrawingContext(); activateDrawingContext(); - +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 // retina support started with 10.7.4 afaik if (m_systemCocoa->m_nativePixel) { [m_openGLView setWantsBestResolutionOpenGLSurface:YES]; NSRect backingBounds = [m_openGLView convertRectToBacking:[m_openGLView bounds]]; m_systemCocoa->m_nativePixelSize = (float)backingBounds.size.width / (float)rect.size.width; } - +#endif m_tablet.Active = GHOST_kTabletModeNone;