Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-07-31 13:06:20 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-08-10 13:49:30 (GMT)
commitd021a5c5cb477c48f471552d6ad56a041505a968 (patch)
tree82feb802ae67bd2e605eed31b0d670dac9e36427 /Area.py
parent5abdb3b7024a3439a091481a594b009f4193d57d (diff)
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 <gonzalo@laptop.org>
Diffstat (limited to 'Area.py')
-rw-r--r--Area.py3
1 files changed, 1 insertions, 2 deletions
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