diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2012-09-04 04:24:01 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2012-09-04 04:24:01 (GMT) |
commit | 1fb40e88d55d1821494b65b500dea415aefd4716 (patch) | |
tree | cbed0353ab0b4fcc9f4989e6ec650ab69bc2f7a7 /Jump.py | |
parent | 9fa6d2b47be1c2f28a9c6f23953f2b593f39bea8 (diff) |
restore functionally of execute ./Jump.py directly
Diffstat (limited to 'Jump.py')
-rwxr-xr-x | Jump.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -168,6 +168,8 @@ class SolitaireMain: def load_things(self):
self.screen = pygame.display.get_surface()
+ if (self.screen == None):
+ self.screen = pygame.display.set_mode((self.width, self.height))
self.font = pygame.font.Font(None, 50)
a=pygame.image.load("data/0.png").convert()
|