[Gridflow-cvs] [svn] commit: r5440 - /trunk/src/quartz.m

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Thu Apr 15 16:42:26 EDT 2010


Author: matju
Date: Thu Apr 15 16:42:26 2010
New Revision: 5440

Log:
move hack to where it belongs (?) so that it is run only once. (please test!)

Modified:
    trunk/src/quartz.m

Modified: trunk/src/quartz.m
==============================================================================
--- trunk/src/quartz.m (original)
+++ trunk/src/quartz.m Thu Apr 15 16:42:26 2010
@@ -98,11 +98,6 @@
 		clock_delay(clock,0);
 		_0_move(0,0,0,0);
 		mouse_state = 0;
-
-		// hack for proper event handling
-		ProcessSerialNumber proc;
-		GetCurrentProcess(&proc);
-		TransformProcessType(&proc, kProcessTransformToForegroundApplication);
 	}
 	~FormatQuartz () {
 		clock_unset(clock);
@@ -337,7 +332,7 @@
 		}
 	} else {
 		while(n) {
-			data2[0]=255;
+			data2[0]=255; // un attribut bool 'alpha' pourrait décider si data[3] serait utilisé ou non
 			data2[1]=(uint8)data[0];
 			data2[2]=(uint8)data[1];
 			data2[3]=(uint8)data[2];
@@ -390,5 +385,9 @@
 }
 void startup_quartz () {
         \startall
-}
-
+	// hack for proper event handling
+	ProcessSerialNumber proc;
+	GetCurrentProcess(&proc);
+	TransformProcessType(&proc, kProcessTransformToForegroundApplication);
+}
+



More information about the Gridflow-cvs mailing list