From df908374dc233c23aef0790cbce65aa0a58c81ec Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Thu, 26 Jul 2018 22:40:45 +0100 Subject: gui: implement basic cursor picking --- common/nextpnr.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common') 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 -- cgit v1.2.3