From cd35f35ab15775e9b15fdd6793a74a842171b3e5 Mon Sep 17 00:00:00 2001 From: Rafael Ortiz Date: Mon, 19 Sep 2011 14:29:51 +0000 Subject: fix for olpc #11231 (wrong dimensions in pygame activities) by james cameron --- (limited to 'game.py') diff --git a/game.py b/game.py index 692c136..362d794 100644 --- a/game.py +++ b/game.py @@ -447,8 +447,11 @@ def main(): # ask pygame how big the screen is, leaving a little room for the toolbar toolbarheight = 75 pygame.display.init() - maxX,maxY = pygame.display.list_modes()[0] - screen = pygame.display.set_mode( ( maxX, maxY-toolbarheight ) ) +# maxX,maxY = pygame.display.list_modes()[0] + videoinfo = pygame.display.Info() + width = videoinfo.current_w + height = videoinfo.current_h - toolbarheight + screen = pygame.display.set_mode((width, height)) game = MazeGame(screen) game.run() -- cgit v0.9.1