aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/gfx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/gfx.cc')
-rw-r--r--ice40/gfx.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/gfx.cc b/ice40/gfx.cc
index f29b38dc..d59c00aa 100644
--- a/ice40/gfx.cc
+++ b/ice40/gfx.cc
@@ -262,8 +262,8 @@ void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId id)
GraphicElement el;
el.type = GraphicElement::G_LINE;
el.x1 = x + lc_lut_swbox_x2;
- el.x2 = x + 0.82;
- el.y1 = y + 0.4675 + (0.005 * input) + z * (0.5 / 8);
+ el.x2 = x + logic_cell_x1;
+ el.y1 = y + 0.4675 + (0.005 * input) + z * logic_cell_pitch;
el.y2 = el.y1;
g.push_back(el);
}