Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDL_FillRects: prevent empty SDL_surface from raising an error message
It's legitimate to have a surface with 0 width or height (null 'pixels' pointer). But calling SDL_FillRects would wrongly set the error "You must lock the surface".
- Loading branch information