Commit 2c079a2f6c7379c83fb9790e25487244a4ce7c11

Sylvain Becker 2020-11-27T09:42:14

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".