Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-08-26 14:38:06 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-08-26 14:38:06 (GMT)
commit624c945534e6a4d1a30d1c6fcfc621b3b27995ab (patch)
treeb36d8a541538ddd88d70aa914928f585a0ecf262 /turtleblocks.py
parentc8e6fa6779197d644c170f37941a5a25842876dc (diff)
more fine-tuning of the rescaling parameters
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index b3997db..b6e9fd6 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -220,8 +220,11 @@ return %s(self)" % (p, P, P)
cr = cairo.Context(img_surface)
surface = cr.get_target()
self.turtle_canvas = surface.create_similar(
- cairo.CONTENT_COLOR, max(1024, gtk.gdk.screen_width() * 2),
- max(768, gtk.gdk.screen_height() * 2))
+ cairo.CONTENT_COLOR,
+ # max(1024, gtk.gdk.screen_width() * 2),
+ # max(768, gtk.gdk.screen_height() * 2))
+ gtk.gdk.screen_width() * 2,
+ gtk.gdk.screen_height() * 2)
self.tw = TurtleArtWindow(self.canvas, self._execdirname,
turtle_canvas=self.turtle_canvas,
activity=self, running_sugar=False)
@@ -577,6 +580,7 @@ Would you like to save before quitting?'))
return
if self.tw.coord_scale == 1:
self.tw.coord_scale = self.tw.height / 40
+ self.tw.update_overlay_position()
if self.tw.cartesian is True:
self.tw.overlay_shapes['Cartesian_labeled'].hide()
self.tw.overlay_shapes['Cartesian'].set_layer(OVERLAY_LAYER)