Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Ignacio Rodríguez <ignacio@Ignacio-Magallanes.(none)>2012-10-12 22:29:35 (GMT)
committer Juan Ignacio Rodríguez <ignacio@Ignacio-Magallanes.(none)>2012-10-12 22:29:35 (GMT)
commit8a04cc24ccfabff5f23936206df4744d00e2d530 (patch)
tree16eff5155c6144f9d2b39030baf895d08d02b229
parent429d3d501697d97869ac1ab38c90ed1d9d58c1ab (diff)
Repared error!
-rw-r--r--game.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/game.py b/game.py
index 7202d5d..cc5f450 100644
--- a/game.py
+++ b/game.py
@@ -179,7 +179,7 @@ class Game():
y = self._space + int(i / 3.) * (self._dot_size + self._space)
x = self._space + (i % 3) * (self._dot_size + self._space)
cr.save()
- cr = Gdk.CairoContext(cr)
+ cr = cairo.CairoContext(cr)
cr.set_source_surface(self._dots[i].cached_surfaces[0], x, y)
cr.rectangle(x, y, self._dot_size, self._dot_size)
cr.fill()
@@ -220,7 +220,7 @@ class Game():
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32,
self._svg_width, self._svg_height)
context = cairo.Context(surface)
- context = Gdk.CairoContext(context)
+ context = cairo.Context(context)
context.set_source_pixbuf(pixbuf, 0, 0)
context.rectangle(0, 0, self._svg_width, self._svg_height)
context.fill()