Anonymous avatar Anonymous committed 3803223

Comments (0)

Files changed (4)

+Pygame-ctypes 0.08
+------------------
+ - Filled ellipse does not hang when rx or ry == 0
+ - Allow rotozoom on 24 bit surfaces
+
 Pygame-ctypes 0.07
 ------------------
  - SDL_INIT_NOPARACHUTE init flag passed
         SDL.constants.SDL_SYSWMEVENT: (SDL_SysWMEvent, 'syswm')
     }
 
-    def __init__(self, typecode):
+    def __init__(self, typecode=0):
         self.type = typecode
 
     def __repr__(self):
     cy = rect.y + rect.h / 2
     xrad = rect.w / 2
     yrad = rect.h / 2
+    if xrad == 0 or yrad == 0:
+        return
     a = 2 * xrad * xrad
     b = 2 * yrad * yrad
     xchange = yrad * yrad * (1 - 2 * xrad)

pygame/transform.py

     if not _have_PIL:
         raise NotImplementedError, 'Python imaging library (PIL) required.'
 
-    if surface._surf.format.BytesPerPixel == 3:
-        raise NotImplementedError, 'TODO: 24-bit RGB'
-
     # XXX: Differ from Pygame: subsurfaces permitted.
     surf = surface._surf
 
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.