Commits

Anonymous committed 2cbac72

user event fix for ctypes 1.0.0

Comments (0)

Files changed (2)

  - pygame.mixer endevent callback fixed
  - pygame.draw.circle correct box for given radius
  - 24-bit surface to RGBX string supported if no color key is set
+ - user event fix for ctypes 1.0.0
 
 Pygame-ctypes 0.08
 ------------------
         if sdl_event:
             uevent = cast(pointer(sdl_event), POINTER(SDL_UserEvent)).contents
             if uevent.code == _USEROBJECT_CHECK1 and \
-               uevent.data1.value == _USEROBJECT_CHECK2 and \
-               uevent.data2.value in _user_event_objects:
+               uevent.data1 == _USEROBJECT_CHECK2 and \
+               uevent.data2 in _user_event_objects:
                 # An event that was posted; grab dict from local store.
                 id = sdl_event.data2.value
                 for key, value in _user_event_objects[id].items():
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.