improve precision of copper traces

This commit is contained in:
bancika
2017-04-21 10:49:36 +02:00
parent 5dc090828c
commit f6ad118044
8 changed files with 8 additions and 8 deletions
Binary file not shown.
@@ -84,8 +84,8 @@ public class CopperTrace extends AbstractLeadedComponent<Void> {
}
@Override
protected int getLeadThickness() {
return (int) getThickness().convertToPixels();
protected float getLeadThickness() {
return (float) getThickness().convertToPixels();
}
@Override
@@ -38,7 +38,7 @@ public class CurvedTrace extends AbstractCurvedComponent<Void> {
@Override
protected void drawCurve(CubicCurve2D curve, Graphics2D g2d, ComponentState componentState) {
int thickness = (int) size.convertToPixels();
float thickness = (float) size.convertToPixels();
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(thickness));
Color curveColor =
componentState == ComponentState.SELECTED || componentState == ComponentState.DRAGGING ? SELECTION_COLOR