diff options
author | Kristian Høgsberg <krh@redhat.com> | 2006-05-19 22:33:09 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@dinky.bitplanet.net> | 2006-05-19 22:33:09 -0400 |
commit | 281c5fe44bd640c9a980c8a068db9b290b08aecc (patch) | |
tree | c2c6a6250665b546444d0ffc4b49107614c232ae | |
parent | 3f5cdf3d255b9c1a5d96bb93b5e481787efe5547 (diff) |
Draw sticks instead of just lines between points.
-rw-r--r-- | akamaru.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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); |