From fcfcd989ee5ba9d04d711e6bc852a4c451e386cb Mon Sep 17 00:00:00 2001 From: Alan Aguiar Date: Wed, 16 Oct 2013 16:15:57 +0000 Subject: use all screen --- 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() -- cgit v0.9.1