Mercurial > projects > doodle
diff doodle/dia/standard_tools.d @ 34:c2f11e1d7470
Geometry cleanup and checkpoint.
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Sun, 30 Aug 2009 15:32:12 +0930 |
parents | 1754cb773d41 |
children | 188397ef9a12 |
line wrap: on
line diff
--- a/doodle/dia/standard_tools.d Sun Aug 30 01:34:14 2009 +0930 +++ b/doodle/dia/standard_tools.d Sun Aug 30 15:32:12 2009 +0930 @@ -105,7 +105,7 @@ override bool handle_button_release(scope Viewport viewport, in ButtonEvent event) { if (event.button_name == ButtonName.LEFT && mActive) { mActive = false; - viewport.damage_pixel(Rectangle(mAnchorPoint, mCurrentPoint).feathered(LINE_WIDTH / 2.0)); + viewport.damage_pixel(feather(Rectangle(mAnchorPoint, mCurrentPoint), LINE_WIDTH / 2.0)); viewport.set_cursor(Cursor.DEFAULT); return true; } @@ -116,9 +116,9 @@ override bool handle_motion(scope Viewport viewport, in MotionEvent event) { if (mActive) { - viewport.damage_pixel(Rectangle(mAnchorPoint, mCurrentPoint).feathered(LINE_WIDTH / 2.0)); + viewport.damage_pixel(feather(Rectangle(mAnchorPoint, mCurrentPoint), LINE_WIDTH / 2.0)); mCurrentPoint = event.pixel_point; - viewport.damage_pixel(Rectangle(mAnchorPoint, mCurrentPoint).feathered(LINE_WIDTH / 2.0)); + viewport.damage_pixel(feather(Rectangle(mAnchorPoint, mCurrentPoint), LINE_WIDTH / 2.0)); } return false;