Commits

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