fix lines that are 2x too wide (bug #1283)

This commit is contained in:
benfry
2009-07-13 18:03:54 +00:00
parent 47b70b1625
commit 44e1ddb45b
+1 -1
View File
@@ -1698,7 +1698,7 @@ public class PGraphics2D extends PGraphics {
float len = (float) Math.sqrt(dX*dX + dY*dY);
// TODO stroke width should be transformed!
float rh = strokeWeight / len;
float rh = (strokeWeight / len) / 2;
float dx0 = rh * dY;
float dy0 = rh * dX;