LayeredDirty.repaint_rect throws TypeError if LayeredDirty clip is not set
File "/home/chris/Documents/programming/<snip>/controllers/scene.py", line 49, in draw self._scene.repaint_rect(pygame.Rect(0.0, 0.0, width, height)) File "/usr/local/lib/python3.2/dist-packages/pygame/sprite.py", line 1164, in repaint_rect self.lostsprites.append(screen_rect.clip(self._clip)) TypeError: Argument must be rect style object
I have an instance of
LayeredDirty and I'm calling
repaint_rect after a VIDEORESIZE event so that the entire screen is redrawn. However, it throws an exception if I don't set a clip. Debugging shows
As well, I found that the documentation could clarify that
repaint_rect will respect any clip that was set and that
repaint_rect doesn't do any explicit drawing.