Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamus_ <mail2samus@gmail.com>2010-03-21 09:50:09 (GMT)
committer Samus_ <mail2samus@gmail.com>2010-03-21 09:50:38 (GMT)
commit1ab0a7de798db56ea2cbd3e1d16ccb9560ebc16b (patch)
tree4b44f21c839357eee8bbe3263f86bc7d05a32488
parentb17ac6363b328fc56947e985493fcf32017d26ec (diff)
removing useless code
-rwxr-xr-xfracciones.activity/gtkcake.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/fracciones.activity/gtkcake.py b/fracciones.activity/gtkcake.py
index 4f6328a..bfc879d 100755
--- a/fracciones.activity/gtkcake.py
+++ b/fracciones.activity/gtkcake.py
@@ -99,14 +99,13 @@ class Cake(gtk.DrawingArea):
# Escala la imagen al tamaño de la superficie
# WIDTH/HEIGHT corresponden al tamaño de los graficos
rect = self.get_allocation()
- context.save()
context.scale(
float(rect.width) / WIDTH,
float(rect.height) / HEIGHT
)
# Dibuja el fondo
- context.set_source_surface(self.image_bg, 0, 0)
+ context.set_source_surface(self.image_bg)
context.paint()
# Dibuja el frente
@@ -114,7 +113,6 @@ class Cake(gtk.DrawingArea):
# Dibuja la rejilla
draw_grid(context, self.subdivisions)
- context.restore()
def _select(self, ux, uy):