From e2d73c20698222cc480f027a2bdbdf7ef57acfdc Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 15 Mar 2012 23:24:31 +0000 Subject: don't zero out dot cache --- diff --git a/game.py b/game.py index dbbe118..882761f 100644 --- a/game.py +++ b/game.py @@ -308,6 +308,7 @@ class Game(): self._activity = parent self._colors = [colors[0]] self._colors.append(colors[1]) + self._dot_cache = {} self._canvas = canvas if parent is not None: @@ -443,7 +444,6 @@ class Game(): def _new_dot(self, color): ''' generate a dot of a color color ''' - self._dot_cache = {} if not color in self._dot_cache: self._stroke = color self._fill = color -- cgit v0.9.1