git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added && and ||
[swftools.git]
/
lib
/
art
/
art_bpath.c
diff --git
a/lib/art/art_bpath.c
b/lib/art/art_bpath.c
index
a25acbf
..
d863c5c
100644
(file)
--- a/
lib/art/art_bpath.c
+++ b/
lib/art/art_bpath.c
@@
-43,50
+43,50
@@
art_bpath_affine_transform (const ArtBpath *src, const double matrix[6])
{
int i;
int size;
{
int i;
int size;
- ArtBpath *new;
+ ArtBpath *xnew;
ArtPathcode code;
double x, y;
for (i = 0; src[i].code != ART_END; i++);
size = i;
ArtPathcode code;
double x, y;
for (i = 0; src[i].code != ART_END; i++);
size = i;
- new = art_new (ArtBpath, size + 1);
+ xnew = art_new (ArtBpath, size + 1);
for (i = 0; i < size; i++)
{
code = src[i].code;
for (i = 0; i < size; i++)
{
code = src[i].code;
- new[i].code = code;
+ xnew[i].code = code;
if (code == ART_CURVETO)
{
x = src[i].x1;
y = src[i].y1;
if (code == ART_CURVETO)
{
x = src[i].x1;
y = src[i].y1;
- new[i].x1 = matrix[0] * x + matrix[2] * y + matrix[4];
- new[i].y1 = matrix[1] * x + matrix[3] * y + matrix[5];
+ xnew[i].x1 = matrix[0] * x + matrix[2] * y + matrix[4];
+ xnew[i].y1 = matrix[1] * x + matrix[3] * y + matrix[5];
x = src[i].x2;
y = src[i].y2;
x = src[i].x2;
y = src[i].y2;
- new[i].x2 = matrix[0] * x + matrix[2] * y + matrix[4];
- new[i].y2 = matrix[1] * x + matrix[3] * y + matrix[5];
+ xnew[i].x2 = matrix[0] * x + matrix[2] * y + matrix[4];
+ xnew[i].y2 = matrix[1] * x + matrix[3] * y + matrix[5];
}
else
{
}
else
{
- new[i].x1 = 0;
- new[i].y1 = 0;
- new[i].x2 = 0;
- new[i].y2 = 0;
+ xnew[i].x1 = 0;
+ xnew[i].y1 = 0;
+ xnew[i].x2 = 0;
+ xnew[i].y2 = 0;
}
x = src[i].x3;
y = src[i].y3;
}
x = src[i].x3;
y = src[i].y3;
- new[i].x3 = matrix[0] * x + matrix[2] * y + matrix[4];
- new[i].y3 = matrix[1] * x + matrix[3] * y + matrix[5];
+ xnew[i].x3 = matrix[0] * x + matrix[2] * y + matrix[4];
+ xnew[i].y3 = matrix[1] * x + matrix[3] * y + matrix[5];
}
}
- new[i].code = ART_END;
- new[i].x1 = 0;
- new[i].y1 = 0;
- new[i].x2 = 0;
- new[i].y2 = 0;
- new[i].x3 = 0;
- new[i].y3 = 0;
+ xnew[i].code = ART_END;
+ xnew[i].x1 = 0;
+ xnew[i].y1 = 0;
+ xnew[i].x2 = 0;
+ xnew[i].y2 = 0;
+ xnew[i].x3 = 0;
+ xnew[i].y3 = 0;
- return new;
+ return xnew;
}
}