From: Matthias Kramm Date: Sun, 6 Jun 2010 00:30:13 +0000 (-0700) Subject: trivial fixes X-Git-Tag: version-0-9-1~4 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=976580517099fe477acbf1ca379716a7a329fb19 trivial fixes --- diff --git a/config.h.in b/config.h.in index 9f122a0..60bf322 100644 --- a/config.h.in +++ b/config.h.in @@ -277,6 +277,10 @@ #endif #endif +#ifndef WIN32 +#define CHECKS +#endif + // supply a substitute calloc function if necessary #ifndef HAVE_CALLOC #define calloc rfx_calloc_replacement diff --git a/lib/gfxpoly/poly.c b/lib/gfxpoly/poly.c index cc383b8..71a743b 100644 --- a/lib/gfxpoly/poly.c +++ b/lib/gfxpoly/poly.c @@ -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;