[Gridflow-cvs] [svn] commit: r4380 - /trunk/format/png.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Oct 25 01:29:37 EDT 2009


Author: matju
Date: Sun Oct 25 01:29:36 2009
New Revision: 4380

Log:
can't get this to work

Modified:
    trunk/format/png.c

Modified: trunk/format/png.c
==============================================================================
--- trunk/format/png.c (original)
+++ trunk/format/png.c Sun Oct 25 01:29:36 2009
@@ -69,16 +69,21 @@
 	int rowsize2 = in->dim->get(1)*3;
 	uint8 row[rowsize2];
 	while (n) {
+	  post("n=%ld",long(n));
 		bit_packing->pack(in->dim->get(1),data,row);
 		png_write_row(png,row);
 		n-=rowsize; data+=rowsize;
 	}
 // this would have been the GRID_FINISH section
+  post("GRID FINISH 1");
   png_write_end(png,info);
+  post("GRID FINISH 2");
   png_write_destroy(png);
-	fflush(stdout);
+  post("GRID FINISH 3");
+	fflush(f);
   free(png);
   free(info);
+	fclose(f);
 } GRID_FINISH {
 } GRID_END
 



More information about the Gridflow-cvs mailing list