# HG changeset patch # User Ryan C. Gordon # Date 1130818464 0 # Node ID 10b3fb28c86b85b9a1200c184a2cc72890ff4ea8 # Parent 96ef834676676f41356350a4688d0b450dc81ce6 Date: Mon, 31 Oct 2005 14:23:34 +0100 From: Thomas Omilian To: sdl@libsdl.org Subject: [SDL] SDL_SoftStretch() fixed! Ok, after debugging the night I found the error: in video/SDL_stretch.c in Line 81 /* See if we need to regenerate the copy buffer */ if ( (src_w == last.src_w) && (dst_w == last.src_w) && (bpp == last.bpp) ) { return(0); } the second comparison should be (dst_w == last dst_w). Perhaps someone could apply it to the source... Regards, Thomas Omilian diff -r 96ef83467667 -r 10b3fb28c86b src/video/SDL_stretch.c --- a/src/video/SDL_stretch.c Sun Oct 30 05:45:46 2005 +0000 +++ b/src/video/SDL_stretch.c Tue Nov 01 04:14:24 2005 +0000 @@ -78,7 +78,7 @@ /* See if we need to regenerate the copy buffer */ if ( (src_w == last.src_w) && - (dst_w == last.src_w) && (bpp == last.bpp) ) { + (dst_w == last.dst_w) && (bpp == last.bpp) ) { return(0); } last.bpp = bpp;