Fixed crash if the update rectangles are not pre-clipped.
authorSam Lantinga <slouken@libsdl.org>
Sun, 13 Mar 2011 19:06:43 -0700
changeset 5485 4cf1ad60ad47
parent 5484 e20c93bc9122
child 5486 a036736283ef
Fixed crash if the update rectangles are not pre-clipped.
src/SDL_compat.c
--- a/src/SDL_compat.c	Sun Mar 13 11:18:35 2011 -0700
+++ b/src/SDL_compat.c	Sun Mar 13 19:06:43 2011 -0700
@@ -763,8 +763,8 @@
 
     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 */