diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-12-30 04:51:54 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-12-30 04:51:54 (GMT) |
commit | b9944c61751d670f95effcb1cde270f1851fec8b (patch) | |
tree | 270b822e6887c1c281cd7e0526ac435810ad9ae1 /SpaceWar.py | |
parent | d6c7cfca4932fcdf3f4d5fe48843a074bf14507d (diff) |
fix some paths
Diffstat (limited to 'SpaceWar.py')
-rwxr-xr-x | SpaceWar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/SpaceWar.py b/SpaceWar.py index acf4510..35f9893 100755 --- a/SpaceWar.py +++ b/SpaceWar.py @@ -39,8 +39,9 @@ class SpaceWar(): # Initialize the screen surface self.screen = pygame.display.get_surface() if not(self.screen): - size = (800, 600) - self.screen = pygame.display.set_mode(size) + info = pygame.display.Info() + size = (info.current_w, info.current_h) + self.screen = pygame.display.set_mode(size, pygame.FULLSCREEN) self.rect = self.screen.get_rect() # Core objects |