diff options
Diffstat (limited to 'paintwithme.py')
-rw-r--r-- | paintwithme.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/paintwithme.py b/paintwithme.py index d07f8cf..a0033ed 100644 --- a/paintwithme.py +++ b/paintwithme.py @@ -192,14 +192,14 @@ params=%r state=%d' % (id, initiator, type, service, params, state)) width, height = json_load(payload) self._drawing.setup(width, height) - def send_stroke(self, stroke_points): + def send_stroke(self, stroke_points, settings): """Send a new stroke to all the players.""" - self.send_event('p|%s' % (json_dump(stroke_points))) + self.send_event('p|%s' % (json_dump((stroke_points, settings)))) def _receive_stroke(self, payload): """When a stroke is finished, everyone should show it.""" - stroke_points = json_load(payload) - self._drawing.remote_stroke(stroke_points) + stroke_points, settings = json_load(payload) + self._drawing.remote_stroke(stroke_points, settings) def send_event(self, entry): """ Send event through the tube. """ |