[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52483] trunk/blender/intern/ghost/intern/ GHOST_SystemCocoa.mm: Tweak macbook trackpad version check, now assumes to be there for version >= 10.

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Nov 22 12:50:15 CET 2012


Revision: 52483
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52483
Author:   blendix
Date:     2012-11-22 11:50:15 +0000 (Thu, 22 Nov 2012)
Log Message:
-----------
Tweak macbook trackpad version check, now assumes to be there for version >= 10.

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

Modified: trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm	2012-11-22 11:45:52 UTC (rev 52482)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm	2012-11-22 11:50:15 UTC (rev 52483)
@@ -576,9 +576,10 @@
 	sysctl( mib, 2, rstring, &len, NULL, 0 );
 	
 	//Hack on MacBook revision, as multitouch avail. function missing
+	//MacbookAir or MacBook version >= 5 (retina is MacBookPro10,1)
 	if (strstr(rstring,"MacBookAir") ||
 		(strstr(rstring,"MacBook") && (rstring[strlen(rstring)-3]>='5') && (rstring[strlen(rstring)-3]<='9')) ||
-		(strstr(rstring,"MacBookPro") && (rstring[strlen(rstring)-4]=='1') && (rstring[strlen(rstring)-3]<='0'))) // Retina Models MacBookPro10,1 +
+		(strstr(rstring,"MacBook") && (rstring[strlen(rstring)-4]>='1') && (rstring[strlen(rstring)-4]<='9')))
 		m_hasMultiTouchTrackpad = true;
 	else m_hasMultiTouchTrackpad = false;
 	




More information about the Bf-blender-cvs mailing list