OS: Windows Vista (64-bit) Python: Python 3.3 (32-bit)
Error when passing a list of tuples to the sdl2.ext.Renderer.fill() function, as descibed in the 0.9.0 documentation. Example: rectangles = [(100,100,50,50), (200,150, 50,50)] window_renderer = sdl2.ext.Renderer(window) window_renderer.fill(rectangles)
The error is: window_renderer.fill(rectangles) File "C:\Python33\lib\site-packages\sdl2\ext\sprite.py", line 247, in fill ptr = cast(rlist, SDL_Rect) File "C:\Python33\lib\ctypes__init__.py", line 490, return _cast(obj, obj, typ) OSError: exception: access violation reading 0x00000004
Also tried a tuple of tuples, like: rectangles = ((100,100,50,50), (200,150, 50,50)) but got the the same error.
The error is in "sdl2/ext/sprites.py" line 247: ptr = cast(rlist, SDL_Rect) I didn't know you could actually write code so similar to C, like it is in the "else" branch of the "fill" function?
Passing only one tuple like "(100,100,50,50)" works and doesn't give this error.
If you need any more info, tell me. Matic