From d021a5c5cb477c48f471552d6ad56a041505a968 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Tue, 31 Jul 2012 13:06:20 +0000 Subject: Use the polygon method to repalce the trace code Trace code was used by brush, eraser and rainbow tools. Was replaced in the brush and eraser tools, due to artifacts when the alpha is not 1.0 The rainbow tools continue using the old code (renamed to _old_trace) Signed-off-by: Gonzalo Odiard --- (limited to 'Area.py') diff --git a/Area.py b/Area.py index e35b871..d312c5a 100644 --- a/Area.py +++ b/Area.py @@ -274,8 +274,6 @@ class Area(gtk.DrawingArea): """ self.drawing_ctx.set_line_width(size) - self.drawing_ctx.set_line_cap(cairo.LINE_CAP_ROUND) - self.drawing_ctx.set_line_join(cairo.LINE_JOIN_ROUND) def expose(self, widget, event): """ This function define which canvas will be showed to the user. @@ -620,6 +618,7 @@ class Area(gtk.DrawingArea): if self.tool['name'] in ['brush', 'eraser', 'rainbow', 'pencil', 'stamp']: self.last = [] + self.d.finish_trace(self) widget.queue_draw() self.drawing = False self.desenha = False -- cgit v0.9.1