aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
diff options
context:
space:
mode:
authorSerge Bazanski <q3k@q3k.org>2018-07-27 15:54:34 +0000
committerSerge Bazanski <q3k@q3k.org>2018-07-27 15:54:34 +0000
commitefda05a5c0d6d14c015382cb3fd2890673200751 (patch)
treedcee8c5ccecb90ea166e1070e3f4e9e3bbbab305 /common/nextpnr.h
parente5acd80247264fed41dfc1e7e07efa8a10a67fae (diff)
parentc210ce77688677a933e9b2906452766f0c344f33 (diff)
downloadnextpnr-efda05a5c0d6d14c015382cb3fd2890673200751.tar.gz
nextpnr-efda05a5c0d6d14c015382cb3fd2890673200751.tar.bz2
nextpnr-efda05a5c0d6d14c015382cb3fd2890673200751.zip
Merge branch 'q3k/clickity' into 'master'
gui: Hover & selection support for GL renderer See merge request SymbioticEDA/nextpnr!22
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index 5e32d5b6..908b8266 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -204,6 +204,11 @@ struct DecalXY
{
DecalId decal;
float x = 0, y = 0;
+
+ bool operator==(const DecalXY &other) const
+ {
+ return (decal == other.decal && x == other.x && y == other.y);
+ }
};
struct BelPin