1. pygame
  2. Untitled project
  3. pygame

Commits

aholkner  committed 3803223

  • Participants
  • Parent commits 2fefed6
  • Branches ctypes-soc

Comments (0)

Files changed (4)

File CHANGELOG

View file
+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

File SDL/events.py

View file
         SDL.constants.SDL_SYSWMEVENT: (SDL_SysWMEvent, 'syswm')
     }
 
-    def __init__(self, typecode):
+    def __init__(self, typecode=0):
         self.type = typecode
 
     def __repr__(self):

File pygame/draw.py

View file
     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)

File pygame/transform.py

View file
     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