src/video/SDL_fillrect.c
changeset 9374 b577c4753421
parent 8641 c576c104923b
child 9619 b94b6d0bff0f
     1.1 --- a/src/video/SDL_fillrect.c	Sun Feb 22 23:21:32 2015 +0100
     1.2 +++ b/src/video/SDL_fillrect.c	Sun Feb 22 20:34:08 2015 -0500
     1.3 @@ -251,6 +251,10 @@
     1.4          rect = &clipped;
     1.5      } else {
     1.6          rect = &dst->clip_rect;
     1.7 +        /* Don't attempt to fill if the surface's clip_rect is empty */
     1.8 +        if (SDL_RectEmpty(rect)) {
     1.9 +            return 0;
    1.10 +        }
    1.11      }
    1.12  
    1.13      /* Perform software fill */