[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52993] trunk/blender/intern/ghost/intern/ GHOST_WindowCocoa.mm: OSX/nativePixel: fix compile for OSX < 10.7

jens verwiebe info at jensverwiebe.de
Fri Dec 14 09:48:49 CET 2012


Revision: 52993
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52993
Author:   jensverwiebe
Date:     2012-12-14 08:48:48 +0000 (Fri, 14 Dec 2012)
Log Message:
-----------
OSX/nativePixel: fix compile for OSX < 10.7

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm

Modified: trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm	2012-12-14 08:05:56 UTC (rev 52992)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm	2012-12-14 08:48:48 UTC (rev 52993)
@@ -578,14 +578,14 @@
 	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;
 	
 	CocoaWindowDelegate *windowDelegate = [[CocoaWindowDelegate alloc] init];




More information about the Bf-blender-cvs mailing list