From 3bf26a8017c9dfcd47f1cd930ee4dc2cbc370e5e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 1 Nov 2005 04:14:24 +0000 Subject: [PATCH] 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 --- src/video/SDL_stretch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_stretch.c b/src/video/SDL_stretch.c index 854531165..80d529206 100644 --- a/src/video/SDL_stretch.c +++ b/src/video/SDL_stretch.c @@ -78,7 +78,7 @@ static int generate_rowbytes(int src_w, int dst_w, int bpp) /* 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;