diff options
author | corvid <corvid@lavabit.com> | 2010-03-11 17:39:28 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-03-11 17:39:28 +0000 |
commit | 910cb898f28aba06b3257332dbaebac6fb40984e (patch) | |
tree | d35f858b4e5b7db3ba65968daad08a2d3587fad5 /dw/types.cc | |
parent | 286bfdb1e392ed133642f2e60e6c993102bcbea9 (diff) |
drawArc() take coordinates of center
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) |