Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed crash if the update rectangles are not pre-clipped.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 14, 2011
1 parent 38ed0f2 commit ccf8af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDL_compat.c
Expand Up @@ -763,8 +763,8 @@ SDL_UpdateRects(SDL_Surface * screen, int numrects, SDL_Rect * rects)

if (screen == SDL_ShadowSurface) {
for (i = 0; i < numrects; ++i) {
SDL_LowerBlit(SDL_ShadowSurface, &rects[i], SDL_VideoSurface,
&rects[i]);
SDL_BlitSurface(SDL_ShadowSurface, &rects[i], SDL_VideoSurface,
&rects[i]);
}

/* Fall through to video surface update */
Expand Down

0 comments on commit ccf8af1

Please sign in to comment.