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