From 77f5f4c4bf9074d953a1653658c8f96f38ae258c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 18 Jun 2013 08:23:06 -0400 Subject: basically operational switch to canvas drawing coordinates, although text and waves don't work, and redraw areas are too small --- libs/canvas/line_set.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/canvas/line_set.cc') diff --git a/libs/canvas/line_set.cc b/libs/canvas/line_set.cc index c3ee5d44b9..5aefe1bf47 100644 --- a/libs/canvas/line_set.cc +++ b/libs/canvas/line_set.cc @@ -73,8 +73,10 @@ LineSet::render (Rect const & area, Cairo::RefPtr context) const } else if (i->y > area.y0) { set_source_rgba (context, i->color); context->set_line_width (i->width); - context->move_to (area.x0, i->y); - context->line_to (area.x1, i->y); + Duple p0 = item_to_window (Duple (area.x0, i->y)); + Duple p1 = item_to_window (Duple (area.x1, i->y)); + context->move_to (p0.x, p0.y); + context->line_to (p1.x, p1.y); context->stroke (); } } -- cgit v1.2.3