changeset 3436:0538362b98d3

Fixed memory corruption in SW_RenderReadPixels()
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 Nov 2009 07:39:08 +0000
parents 9f62f47d989b
children dc2911c207e4
files src/video/SDL_surface.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }