summaryrefslogtreecommitdiff
path: root/dw/types.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-03-11 17:39:28 +0000
committercorvid <corvid@lavabit.com>2010-03-11 17:39:28 +0000
commit910cb898f28aba06b3257332dbaebac6fb40984e (patch)
treed35f858b4e5b7db3ba65968daad08a2d3587fad5 /dw/types.cc
parent286bfdb1e392ed133642f2e60e6c993102bcbea9 (diff)
drawArc() take coordinates of center
Diffstat (limited to 'dw/types.cc')
-rw-r--r--dw/types.cc6
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)