PySDL2 0.9.14
As summer comes to a close, so does another PySDL2 release cycle! The bindings have been updated to wrap the new functions and constants added in SDL 2.24.0, a few small bugs have been fixed, and a couple small improvements have been made to the sdl2.ext
modules.
Apart from SDL 2.24.0 support, the biggest change is the addition of a new ext
function and class (get_displays
and DisplayInfo
) for easily retrieving information about the names and supported video modes of all connected displays. Additionally, the previously internal raise_sdl_err
function for cleanly raising informative Python exceptions for SDL errors has been added to the public API to make it easier to write robust code with the direct SDL2 bindings.
Changelog
- Updated to wrap new functions and constants in SDL 2.24.0.
- Added a new module
sdl2.ext.displays
for retrieving and working with connected displays and their supported resolutions/refresh rates. - Extended
sdl2.ext.init
to allow initializing all SDL subsystems individually (previously just initialized the video subsystem). - Improved the memory safety of the
sdl2.ext.Window
class. - Added
raise_sdl_err
to the publicext
API. - Fixed
sdl2.ext.line
to work correctly on 1bpp surfaces. - Various fixes/improvements to the unit test suite for Linux package maintainers.