trivial fixes
authorMatthias Kramm <kramm@quiss.org>
Sun, 6 Jun 2010 00:30:13 +0000 (17:30 -0700)
committerMatthias Kramm <kramm@quiss.org>
Sun, 6 Jun 2010 00:30:13 +0000 (17:30 -0700)
config.h.in
lib/gfxpoly/poly.c

index 9f122a0..60bf322 100644 (file)
 #endif
 #endif
 
+#ifndef WIN32
+#define CHECKS
+#endif
+
 // supply a substitute calloc function if necessary
 #ifndef HAVE_CALLOC
 #define calloc rfx_calloc_replacement
index cc383b8..71a743b 100644 (file)
@@ -325,7 +325,7 @@ void gfxpoly_save_arrows(gfxpoly_t*poly, const char*filename)
     double g = poly->gridsize;
     gfxpolystroke_t*stroke = poly->strokes;
     for(;stroke;stroke=stroke->next) {
-       fprintf(fi, "%g setgray\n", 0);
+       fprintf(fi, "0 setgray\n");
 
        int s = stroke->dir==DIR_UP?stroke->num_points-1:0;
        int end = stroke->dir==DIR_UP?-1:stroke->num_points;