Commits

Anonymous committed fed4366

Misc. bug fixes from pygame.draw challenge compat testing

Comments (0)

Files changed (3)

     success = 0
     fail = 0
 
-    SDL.SDL_Init(SDL.SDL_INIT_EVENTTHREAD | SDL.SDL_INIT_TIMER)
+    SDL.SDL_Init(SDL.SDL_INIT_EVENTTHREAD | \
+                 SDL.SDL_INIT_TIMER | \
+                 SDL.SDL_INIT_NOPARACHUTE) 
 
     if _video_autoinit():
         success += 1
 
 from SDL import *
 from SDL.mixer import *
+from SDL.rwops import *
 
 import pygame.base
 
     while i < buffer:
         i <<= 1
     buffer = i
-
+    
+    global _endsound_callback
     if not SDL_WasInit(SDL_INIT_AUDIO):
         pygame.base.register_quit(_autoquit)
 
         _mixer_init_check()
 
         if hasattr(file, 'read'):
-            rw = SDL_RWopsFromObject(file)
+            rw = SDL_RWFromObject(file)
             # differ from Pygame, no freesrc here.
             self._chunk = Mix_LoadWAV_RW(rw, 0)
         else:
 
         channel = Channel(channelnum)
         channel._queue = None
-        channel._sound = None
+        channel._sound = self
         return channel
         
     def stop(self):
 
     def __setattr__(self, name, value):
         if name == 'top' or name == 'y':
-            self._r.y = value
+            self._r.y = int(value)
         elif name == 'left' or name == 'x':
             self._r.x = int(value)
         elif name == 'bottom':
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.