diff options
author | Wade Brainerd <wadetb@gmail.com> | 2009-11-21 17:28:06 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2009-11-21 17:28:06 (GMT) |
commit | 00aef3c9f7beb67077278d4d6e2056a94da00630 (patch) | |
tree | 053730a8a18bf4c1f559835c74d506383013ba96 /sugargame/canvas.py | |
parent | 404d5ed2bc2c21add965bc6035443bae086beeed (diff) |
Update Sugargame
Diffstat (limited to 'sugargame/canvas.py')
-rw-r--r-- | sugargame/canvas.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sugargame/canvas.py b/sugargame/canvas.py index 27f9137..cf99a13 100644 --- a/sugargame/canvas.py +++ b/sugargame/canvas.py @@ -41,7 +41,8 @@ class PygameCanvas(gtk.EventBox): self._socket.get_window().set_cursor(None) # Initialize the Pygame window. - pygame.display.set_mode((0, 0), pygame.RESIZABLE) + r = self.get_allocation() + pygame.display.set_mode((r.width, r.height), pygame.RESIZABLE) # Hook certain Pygame functions with GTK equivalents. translator = event.Translator(self._mainwindow, self) |