X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcircle.cpp;fp=src%2Fcircle.cpp;h=6473440ccdb287408e24870b501b23ebbd611551;hb=59e5af9d8606aa091fa979e19f78e9325a1c0825;hp=d6ed3064b175b7fd2fe2310d8a8da0a3bce7b2df;hpb=ef811c836c00cc94ce1eaea5c2e77e5278298b18;p=architektonas diff --git a/src/circle.cpp b/src/circle.cpp index d6ed306..6473440 100644 --- a/src/circle.cpp +++ b/src/circle.cpp @@ -87,6 +87,17 @@ Circle::~Circle() /*virtual*/ void Circle::PointerMoved(Vector point) { + if (selectionInProgress) + { + // Check for whether or not the rect contains this circle + if (selection.normalized().contains(Extents())) + state = OSSelected; + else + state = OSInactive; + + return; + } + // Hit test tells us what we hit (if anything) through boolean variables. It // also tells us whether or not the state changed. needUpdate = HitTest(point);