X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcircle.cpp;h=94a9ec8f807b47b5e867bb3e5fab79b951c46c3a;hb=8a5bf49d09b5a00ebea3ffc449519ad05b0326cc;hp=88cdaa714684be3272265a3ffaae7c08f1d6dc70;hpb=31dd33b097661175a86b6799df525972055099fb;p=architektonas diff --git a/src/circle.cpp b/src/circle.cpp index 88cdaa7..94a9ec8 100644 --- a/src/circle.cpp +++ b/src/circle.cpp @@ -118,7 +118,7 @@ Circle::~Circle() } -/*virtual*/ void Circle::PointerMoved(Vector point) +/*virtual*/ bool Circle::PointerMoved(Vector point) { if (selectionInProgress) { @@ -129,13 +129,13 @@ Circle::~Circle() else state = OSInactive; - return; + return false; } // Hit test tells us what we hit (if anything) through boolean variables. It // also tells us whether or not the state changed. SaveHitState(); - HitTest(point); + bool hovered = HitTest(point); needUpdate = HitStateChanged(); objectWasDragged = (draggingEdge | draggingCenter); @@ -149,6 +149,7 @@ Circle::~Circle() // Save this point so the rendering code knows where to draw the handle... dragPoint = point; + return hovered; }