File: initialize-only-required-pygame-modules.patch

package info (click to toggle)
whichwayisup 0.7.9-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,808 kB
  • sloc: python: 2,372; sh: 3; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 631 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Markus Koschany <apo@debian.org>
Date: Tue, 28 May 2013 18:21:54 +0200
Subject: initialize only required pygame modules.

---
 lib/main.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/main.py b/lib/main.py
index cfe9046..6a0376a 100644
--- a/lib/main.py
+++ b/lib/main.py
@@ -60,7 +60,9 @@ def main():
 
     #Initializing pygame and screen
 
-    pygame.init()
+    pygame.joystick.init()
+    pygame.display.init()
+    pygame.mixer.init()
     screen = pygame.display.set_mode((SCREEN_WIDTH,SCREEN_HEIGHT))
     caption = "Which way is up?"
     if (Variables.vdict["devmode"]):