Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Jump.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2012-09-04 04:24:01 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2012-09-04 04:24:01 (GMT)
commit1fb40e88d55d1821494b65b500dea415aefd4716 (patch)
treecbed0353ab0b4fcc9f4989e6ec650ab69bc2f7a7 /Jump.py
parent9fa6d2b47be1c2f28a9c6f23953f2b593f39bea8 (diff)
restore functionally of execute ./Jump.py directly
Diffstat (limited to 'Jump.py')
-rwxr-xr-xJump.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Jump.py b/Jump.py
index 88a797e..be25bc7 100755
--- a/Jump.py
+++ b/Jump.py
@@ -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()