Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugargame/canvas.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugargame/canvas.py')
-rw-r--r--sugargame/canvas.py3
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)