Commit 5ddb7241 authored by Sam Lantinga's avatar Sam Lantinga

Fixed crash if the update rectangles are not pre-clipped.

parent a19e2587
...@@ -763,7 +763,7 @@ SDL_UpdateRects(SDL_Surface * screen, int numrects, SDL_Rect * rects) ...@@ -763,7 +763,7 @@ SDL_UpdateRects(SDL_Surface * screen, int numrects, SDL_Rect * rects)
if (screen == SDL_ShadowSurface) { if (screen == SDL_ShadowSurface) {
for (i = 0; i < numrects; ++i) { for (i = 0; i < numrects; ++i) {
SDL_LowerBlit(SDL_ShadowSurface, &rects[i], SDL_VideoSurface, SDL_BlitSurface(SDL_ShadowSurface, &rects[i], SDL_VideoSurface,
&rects[i]); &rects[i]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment