Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-10-16 16:15:57 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-10-16 16:15:57 (GMT)
commitfcfcd989ee5ba9d04d711e6bc852a4c451e386cb (patch)
tree6864b3fcbab8db0ded8933acac8a84ef5ead3645
parent68c87bbd0a701df74f0e35ebf012ff461ebc8ef4 (diff)
use all screen
-rwxr-xr-xcells.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/cells.py b/cells.py
index 9e4cf94..32fc553 100755
--- a/cells.py
+++ b/cells.py
@@ -36,14 +36,18 @@ class Game():
def __init__(self, fps = 30):
self.fps = fps
- self.cursor = pygame.cursors.compile(cursor.cursor_data)
def load_all(self):
pygame.init()
+ self.cursor = pygame.cursors.compile(cursor.cursor_data)
pygame.mouse.set_cursor((32,32), (1,1), *self.cursor)
+ info = pygame.display.Info()
+ self.ScreenWidth = info.current_w
+ self.ScreenHeight = info.current_h
self.screen = pygame.display.get_surface()
if not(self.screen):
- self.screen = pygame.display.set_mode((1200, 800))
+ self.screen = pygame.display.set_mode((self.ScreenWidth,
+ self.ScreenHeight), pygame.FULLSCREEN)
# time stuff
self.clock = pygame.time.Clock()