fixing little bug when drawing more thant 2 balls and
authorLincoln de Sousa <lincoln@minaslivre.org>
Sat, 9 Aug 2008 23:18:44 +0000 (20:18 -0300)
committerLincoln de Sousa <lincoln@minaslivre.org>
Sat, 9 Aug 2008 23:18:44 +0000 (20:18 -0300)
gzv.py

diff --git a/gzv.py b/gzv.py
index 47cd87e..e112cd8 100644 (file)
--- a/gzv.py
+++ b/gzv.py
@@ -279,20 +279,18 @@ class Gzv(GladeLoader):
         ctx.fill()
 
         ctx.set_line_width(10.0)
-        ctx.set_source_rgba (0.5, 0.0, 0.0, 0.4)
+        ctx.set_source_rgba(0.5, 0.0, 0.0, 0.4)
 
         for i in self.balls:
             ctx.arc(i.x, i.y, i.radius, 0, 64*math.pi)
-
-        ctx.fill()
-        ctx.stroke()
+            ctx.fill()
 
     def draw_current_ball(self):
         if self.start_x < 0:
             return
         ctx = self.draw.window.cairo_create()
         ctx.arc(self.start_x, self.start_y, self.radius, 0, 64*math.pi)
-        ctx.set_source_rgba (0.5, 0.0, 0.0, 0.4)
+        ctx.set_source_rgba(0.5, 0.0, 0.0, 0.4)
         ctx.fill()
 
     def button_press(self, widget, event):