diff options
Diffstat (limited to 'dw/types.cc')
-rw-r--r-- | dw/types.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dw/types.cc b/dw/types.cc index 3bc78ded..672ec7f6 100644 --- a/dw/types.cc +++ b/dw/types.cc @@ -142,11 +142,9 @@ void Circle::draw (core::View *view, core::style::Style *style, int x, int y) { const bool filled = false; - /* drawArc() wants x, y, w, h for a rectangle, and then it draws the arc - * inside that */ view->drawArc(style->color, core::style::Color::SHADING_NORMAL, filled, - x + this->x - this->radius, y + this->y - this->radius, - 2 * this->radius, 2 * this->radius, 0, 360); + x + this->x, y + this->y, 2 * this->radius, 2 * this->radius, + 0, 360); } bool Circle::isPointWithin (int x, int y) |