From: kramm Date: Fri, 7 Jan 2005 17:30:30 +0000 (+0000) Subject: added some comments about line width. X-Git-Tag: release-0-6-3~57 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=90e82ae6c7f404670088aba9bebd012ce90ba932 added some comments about line width. --- diff --git a/lib/modules/swfrender.c b/lib/modules/swfrender.c index f44c79c..db1a2d1 100644 --- a/lib/modules/swfrender.c +++ b/lib/modules/swfrender.c @@ -182,10 +182,18 @@ static void add_solidline(RENDERBUF*buf, double x1, double y1, double x2, double double lastx,lasty; double vx,vy; double xx,yy; - - /* The Flash Player does this, too. This means every line is always at least - one pixel wide */ + + /* Make sure the line is always at least one pixel wide */ +#define LINEMODE1 +#ifdef LINEMODE1 + /* That's what Macromedia's Player does at least at zoom level >= 1. */ width += 20; +#else + /* That's what Macromedia's Player seems to do at zoom level 0. */ + /* TODO: needs testing */ + if(width<20) + width = 20; +#endif sd = (double)dx*(double)dx+(double)dy*(double)dy; d = sqrt(sd);