summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2006-05-19 22:33:09 -0400
committerKristian Høgsberg <krh@dinky.bitplanet.net>2006-05-19 22:33:09 -0400
commit281c5fe44bd640c9a980c8a068db9b290b08aecc (patch)
treec2c6a6250665b546444d0ffc4b49107614c232ae
parent3f5cdf3d255b9c1a5d96bb93b5e481787efe5547 (diff)
Draw sticks instead of just lines between points.
-rw-r--r--akamaru.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/akamaru.c b/akamaru.c
index f6375e8..b6a69b2 100644
--- a/akamaru.c
+++ b/akamaru.c
@@ -305,10 +305,13 @@ draw_lines (cairo_t *cr,
cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND);
cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
- for (i = 0; i < model->num_objects; i++) {
+ for (i = 0; i < model->num_sticks; i++) {
+ cairo_move_to (cr,
+ model->sticks[i].a->position.x,
+ model->sticks[i].a->position.y);
cairo_line_to (cr,
- model->objects[i].position.x,
- model->objects[i].position.y);
+ model->sticks[i].b->position.x,
+ model->sticks[i].b->position.y);
}
cairo_stroke (cr);