git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9634f8
)
trivial fixes
author
Matthias Kramm
<kramm@quiss.org>
Sun, 6 Jun 2010 00:30:13 +0000
(17:30 -0700)
committer
Matthias Kramm
<kramm@quiss.org>
Sun, 6 Jun 2010 00:30:13 +0000
(17:30 -0700)
config.h.in
patch
|
blob
|
history
lib/gfxpoly/poly.c
patch
|
blob
|
history
diff --git
a/config.h.in
b/config.h.in
index
9f122a0
..
60bf322
100644
(file)
--- 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
(file)
--- 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;