swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] Problem in drawer.c


From: Keith Trummel
Subject: [Swftools-common] Problem in drawer.c
Date: Tue, 7 Jun 2005 08:40:11 -0700

I got a copy of the source for SwfTools version 0.6.3 and when I was building it I noticed the following code starting at line 125 in the file drawer.c
 
 else if(!strncmp(token, "circle", 6)) {
     int mx,my,r;
     double r2 = 0.70710678118654757*r;
     mx = atoi(getToken(&p));
     my = atoi(getToken(&p));
     r = atoi(getToken(&p));
     draw_moveTo2(draw, mx, my-r);
     draw_conicTo2(draw, mx+r2, my-r2, mx+r, my);
     draw_conicTo2(draw, mx+r2, my+r2, mx, my+r);
     draw_conicTo2(draw, mx-r2, my+r2, mx-r, my);
     draw_conicTo2(draw, mx-r2, my-r2, mx, my-r);
 }
 
Note that in the assignment of r2, the variable r is used before it as been assigned a value.  I assume that line should be moved to immediately after the assignement of r.
 
Keith Trummel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]