aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-26 17:46:27 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-26 17:46:27 +0100
commit940886f9fa9e9d4238daa77e38a3a066187d66a5 (patch)
tree1cafa9803c986a2cc91e7e3108b07b2b37b803a4 /ice40/main.cc
parent340c2520b009e8a84b0f8e4bdbce91daad74f367 (diff)
parentae6eeb9d810c647ca1684459627b8dd20870f993 (diff)
downloadnextpnr-940886f9fa9e9d4238daa77e38a3a066187d66a5.tar.gz
nextpnr-940886f9fa9e9d4238daa77e38a3a066187d66a5.tar.bz2
nextpnr-940886f9fa9e9d4238daa77e38a3a066187d66a5.zip
Merge branch 'master' into q3k/clickity
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 6201831a..32815b26 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";