Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/taturtle.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-10-20 22:25:49 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-10-20 22:25:49 (GMT)
commitf6f711797a4380690c99160ac38228cad429d633 (patch)
tree287ef32ef27336058cecea494b459a64e87df3b4 /TurtleArt/taturtle.py
parent9029e2150656225fbca1e237f6f8292ada6150ff (diff)
fix shared fill
Diffstat (limited to 'TurtleArt/taturtle.py')
-rw-r--r--TurtleArt/taturtle.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/TurtleArt/taturtle.py b/TurtleArt/taturtle.py
index b87d0a6..ac72bdb 100644
--- a/TurtleArt/taturtle.py
+++ b/TurtleArt/taturtle.py
@@ -495,8 +495,12 @@ class Turtle:
if self._turtles.turtle_window.sharing() and share:
shared_poly_points = []
for p in self._poly_points:
- shared_poly_points.append(
- (self._turtles.screen_to_turtle_coordinates(p)))
+ x, y = self._turtles.turtle_to_screen_coordinates(
+ (p[1], p[2]))
+ if p[0] in ['move', 'line']:
+ shared_poly_points.append((p[0], x, y))
+ elif p[0] in ['rarc', 'larc']:
+ shared_poly_points.append((p[0], x, y, p[3], p[4], p[5]))
event = 'F|%s' % (data_to_string(
[self._turtles.turtle_window.nick,
shared_poly_points]))