Fixed crash if the update rectangles are not pre-clipped.
authorSam Lantinga <slouken@libsdl.org>
Sun, 13 Mar 2011 19:06:43 -0700
changeset 54854cf1ad60ad47
parent 5484 e20c93bc9122
child 5486 a036736283ef
Fixed crash if the update rectangles are not pre-clipped.
src/SDL_compat.c
     1.1 --- a/src/SDL_compat.c	Sun Mar 13 11:18:35 2011 -0700
     1.2 +++ b/src/SDL_compat.c	Sun Mar 13 19:06:43 2011 -0700
     1.3 @@ -763,8 +763,8 @@
     1.4  
     1.5      if (screen == SDL_ShadowSurface) {
     1.6          for (i = 0; i < numrects; ++i) {
     1.7 -            SDL_LowerBlit(SDL_ShadowSurface, &rects[i], SDL_VideoSurface,
     1.8 -                          &rects[i]);
     1.9 +            SDL_BlitSurface(SDL_ShadowSurface, &rects[i], SDL_VideoSurface,
    1.10 +                            &rects[i]);
    1.11          }
    1.12  
    1.13          /* Fall through to video surface update */