From: Kristian Høgsberg Date: Sat, 20 May 2006 02:33:09 +0000 (-0400) Subject: Draw sticks instead of just lines between points. X-Git-Url: https://git.cworth.org/git?p=akamaru;a=commitdiff_plain;h=281c5fe44bd640c9a980c8a068db9b290b08aecc Draw sticks instead of just lines between points. --- 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);