aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
authorEddie Hung <e.hung@imperial.ac.uk>2018-07-26 21:00:26 -0700
committerEddie Hung <e.hung@imperial.ac.uk>2018-07-26 21:00:26 -0700
commitd5c2332ebf5dd9b84e3a6fd2a99e8df70150bd33 (patch)
tree0f641516654085dd24bb69889ef466041234f684 /ice40/main.cc
parentf45e688354c13f38bda3ba4064587880a25980fe (diff)
parente5acd80247264fed41dfc1e7e07efa8a10a67fae (diff)
downloadnextpnr-d5c2332ebf5dd9b84e3a6fd2a99e8df70150bd33.tar.gz
nextpnr-d5c2332ebf5dd9b84e3a6fd2a99e8df70150bd33.tar.bz2
nextpnr-d5c2332ebf5dd9b84e3a6fd2a99e8df70150bd33.zip
Merge remote-tracking branch 'origin/master' into redist_slack
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index 2560387b..865eea9e 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -52,13 +52,13 @@ void svg_dump_decal(const Context *ctx, const DecalXY &decal)
const std::string style = "stroke=\"black\" stroke-width=\"0.1\" fill=\"none\"";
for (auto &el : ctx->getDecalGraphics(decal.decal)) {
- if (el.type == GraphicElement::G_BOX) {
+ if (el.type == GraphicElement::TYPE_BOX) {
std::cout << "<rect x=\"" << (offset + scale * (decal.x + el.x1)) << "\" y=\""
<< (offset + scale * (decal.y + el.y1)) << "\" height=\"" << (scale * (el.y2 - el.y1))
<< "\" width=\"" << (scale * (el.x2 - el.x1)) << "\" " << style << "/>\n";
}
- if (el.type == GraphicElement::G_LINE) {
+ if (el.type == GraphicElement::TYPE_LINE) {
std::cout << "<line x1=\"" << (offset + scale * (decal.x + el.x1)) << "\" y1=\""
<< (offset + scale * (decal.y + el.y1)) << "\" x2=\"" << (offset + scale * (decal.x + el.x2))
<< "\" y2=\"" << (offset + scale * (decal.y + el.y2)) << "\" " << style << "/>\n";