Fixed memory corruption in SW_RenderReadPixels()
authorSam Lantinga <slouken@libsdl.org>
Mon, 16 Nov 2009 07:39:08 +0000
changeset 3436 0538362b98d3
parent 3435 9f62f47d989b
child 3437 dc2911c207e4
Fixed memory corruption in SW_RenderReadPixels()
src/video/SDL_surface.c
--- a/src/video/SDL_surface.c	Mon Nov 16 07:13:07 2009 +0000
+++ b/src/video/SDL_surface.c	Mon Nov 16 07:39:08 2009 +0000
@@ -961,7 +961,7 @@
     rect.x = 0;
     rect.y = 0;
     rect.w = width;
-    rect.h = width;
+    rect.h = height;
     return SDL_LowerBlit(&src_surface, &rect, &dst_surface, &rect);
 }