Mercurial > projects > doodle
diff doodle/dia/grid_layer.d @ 38:452915ecd1f4
Basic logging functionality
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Sun, 27 Sep 2009 22:51:03 +0930 |
parents | 188397ef9a12 |
children | f2e4e1d29b98 |
line wrap: on
line diff
--- a/doodle/dia/grid_layer.d Sun Aug 30 23:39:04 2009 +0930 +++ b/doodle/dia/grid_layer.d Sun Sep 27 22:51:03 2009 +0930 @@ -51,7 +51,7 @@ double y1 = model_damage.max_corner.y; for (;;) { - line(model_cr, x, y0, x, y1); + vline(model_cr, x, y0, y1); // Ensure 1 pixel wide FIXME is this naughty? We are sneaking // through cairo to mix model and pixel coordinates... @@ -75,7 +75,7 @@ double x1 = model_damage.max_corner.x; for (;;) { - line(model_cr, x0, y, x1, y); + hline(model_cr, y, x0, x1); model_cr.save(); { model_cr.scale(1.0 / xx, 1.0 / yy);