Mercurial > projects > doodle
diff doodle/fig/select_tool.d @ 79:535bae7a7305
Checkpoint
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Sun, 15 Aug 2010 23:18:05 +0930 |
parents | 15ca7d5cd1ed |
children | b759414d2b72 |
line wrap: on
line diff
--- a/doodle/fig/select_tool.d Sun Aug 15 15:19:14 2010 +0930 +++ b/doodle/fig/select_tool.d Sun Aug 15 23:18:05 2010 +0930 @@ -28,7 +28,7 @@ override bool handleButtonRelease(scope IViewport viewport, in ButtonEvent event) { if (event.buttonName == ButtonName.LEFT && _active) { _active = false; - viewport.damageScreen(feather(Rectangle(_anchorPoint, _currentPoint), LINE_WIDTH / 2.0)); + viewport.damageScreen(growCentre(Rectangle(_anchorPoint, _currentPoint), LINE_WIDTH)); viewport.setCursor(Cursor.DEFAULT); return true; } @@ -39,9 +39,9 @@ override bool handleMotion(scope IViewport viewport, in MotionEvent event) { if (_active) { - viewport.damageScreen(feather(Rectangle(_anchorPoint, _currentPoint), LINE_WIDTH / 2.0)); + viewport.damageScreen(growCentre(Rectangle(_anchorPoint, _currentPoint), LINE_WIDTH)); _currentPoint = event.pixelPoint; - viewport.damageScreen(feather(Rectangle(_anchorPoint, _currentPoint), LINE_WIDTH / 2.0)); + viewport.damageScreen(growCentre(Rectangle(_anchorPoint, _currentPoint), LINE_WIDTH)); } return false;