[pypy-svn] r62730 - pypy/trunk/pypy/rlib/rsdl

santagada at codespeak.net santagada at codespeak.net
Sun Mar 8 01:49:19 CET 2009


Author: santagada
Date: Sun Mar  8 01:49:18 2009
New Revision: 62730

Modified:
   pypy/trunk/pypy/rlib/rsdl/RMix.py
   pypy/trunk/pypy/rlib/rsdl/RSDL.py
Log:
Some more missing parts of libsdl.

Modified: pypy/trunk/pypy/rlib/rsdl/RMix.py
==============================================================================
--- pypy/trunk/pypy/rlib/rsdl/RMix.py	(original)
+++ pypy/trunk/pypy/rlib/rsdl/RMix.py	Sun Mar  8 01:49:18 2009
@@ -24,7 +24,10 @@
 class CConfig:
     _compilation_info_ = eci
 
-    Chunk              = platform.Struct('Mix_Chunk', [])
+    Chunk              = platform.Struct('Mix_Chunk', [('allocated', rffi.INT),
+                                                       ('abuf', RSDL.Uint8P),
+                                                       ('alen', RSDL.Uint32),
+                                                       ('volume', RSDL.Uint8)])
 
 globals().update(platform.configure(CConfig))
 

Modified: pypy/trunk/pypy/rlib/rsdl/RSDL.py
==============================================================================
--- pypy/trunk/pypy/rlib/rsdl/RSDL.py	(original)
+++ pypy/trunk/pypy/rlib/rsdl/RSDL.py	Sun Mar  8 01:49:18 2009
@@ -85,6 +85,9 @@
                                      ('xrel', rffi.INT),
                                      ('yrel', rffi.INT)])
     
+    QuitEvent        = platform.Struct('SDL_QuitEvent',
+                                    [('type', rffi.INT)])
+    
     RWops = platform.Struct('SDL_RWops', [])
 
 # ------------------------------------------------------------------------------



More information about the Pypy-commit mailing list