[Gridflow-cvs] [svn] commit: r4851 - /trunk/src/classes1.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Nov 9 18:31:20 EST 2009


Author: matju
Date: Mon Nov  9 18:31:19 2009
New Revision: 4851

Log:
rien

Modified:
    trunk/src/classes1.cxx

Modified: trunk/src/classes1.cxx
==============================================================================
--- trunk/src/classes1.cxx (original)
+++ trunk/src/classes1.cxx Mon Nov  9 18:31:19 2009
@@ -1017,15 +1017,8 @@
 	out=new GridOutlet(this,0,dim,in->nt);
 } GRID_FLOW {
 	long i = dex;
-	if (!temp) {
-		long n2 = min(n,dim->prod()-i);
-		if (n2>0) out->send(n2,data);
-		// discard other values if any
-	} else {
-		long n2 = min(n,in->dim->prod()-i);
-		COPY((T *)*temp+i,data,n2);
-		if (n2>0) out->send(n2,data);
-	}
+	if (!temp) {long n2 = min(n,    dim->prod()-i);                             if (n2>0) out->send(n2,data);}
+	else       {long n2 = min(n,in->dim->prod()-i); COPY((T *)*temp+i,data,n2); if (n2>0) out->send(n2,data);}
 } GRID_FINISH {
 	if (!!temp) {
 		long a = in->dim->prod(), b = dim->prod();
@@ -1908,13 +1901,8 @@
 	}
 }
 
-static int order_by_starting_scanline (const void *a, const void *b) {
-	return ((Line *)a)->y1 - ((Line *)b)->y1;
-}
-
-static int order_by_column (const void *a, const void *b) {
-	return ((Line *)a)->x - ((Line *)b)->x;
-}
+static int order_by_starting_scanline (const void *a, const void *b) {return ((Line *)a)->y1 - ((Line *)b)->y1;}
+static int order_by_column            (const void *a, const void *b) {return ((Line *)a)->x  - ((Line *)b)->x;}
 
 GRID_INLET(0) {
 	NOTEMPTY(color);



More information about the Gridflow-cvs mailing list