diff options
author | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-26 16:39:19 +0100 |
---|---|---|
committer | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-26 16:39:19 +0100 |
commit | c37d2baaf647fec35c28a8e639b0d4a74643537d (patch) | |
tree | 4423d574599ca2f05ca2facf6a7b7294ec13f1e8 /ice40/gfx.cc | |
parent | f1b84fbdc5b1377cc88e56b5e0f95b62a7531a35 (diff) | |
download | nextpnr-c37d2baaf647fec35c28a8e639b0d4a74643537d.tar.gz nextpnr-c37d2baaf647fec35c28a8e639b0d4a74643537d.tar.bz2 nextpnr-c37d2baaf647fec35c28a8e639b0d4a74643537d.zip |
common: rename GraphicElement::{style,type} enums, add _MAX members
Diffstat (limited to 'ice40/gfx.cc')
-rw-r--r-- | ice40/gfx.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ice40/gfx.cc b/ice40/gfx.cc index 0a583e8e..0798862a 100644 --- a/ice40/gfx.cc +++ b/ice40/gfx.cc @@ -24,7 +24,7 @@ NEXTPNR_NAMESPACE_BEGIN void gfxTileWire(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId id, GraphicElement::style_t style) { GraphicElement el; - el.type = GraphicElement::G_LINE; + el.type = GraphicElement::TYPE_LINE; el.style = style; // Horizontal Span-4 Wires @@ -647,7 +647,7 @@ void pipGfx(std::vector<GraphicElement> &g, int x, int y, float x1, float y1, fl float ty = 0.5 * (y1 + y2); GraphicElement el; - el.type = GraphicElement::G_ARROW; + el.type = GraphicElement::TYPE_ARROW; el.style = style; if (fabsf(x1 - swx1) < 0.001 && fabsf(x2 - swx1) < 0.001) { @@ -704,7 +704,7 @@ void gfxTilePip(std::vector<GraphicElement> &g, int x, int y, GfxTileWireId src, if (src == TILE_WIRE_CARRY_IN && dst == TILE_WIRE_CARRY_IN_MUX) { GraphicElement el; - el.type = GraphicElement::G_ARROW; + el.type = GraphicElement::TYPE_ARROW; el.style = style; el.x1 = x + logic_cell_x1 + 0.005 * 3; el.x2 = el.x1; |