Date: Mon, 31 Oct 2005 14:23:34 +0100
authorRyan C. Gordon <icculus@icculus.org>
Tue, 01 Nov 2005 04:14:24 +0000
changeset 116410b3fb28c86b
parent 1163 96ef83467667
child 1165 4fa705cdecb9
Date: Mon, 31 Oct 2005 14:23:34 +0100
From: Thomas Omilian <paccy@arcor.de>
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
     1.1 --- a/src/video/SDL_stretch.c	Sun Oct 30 05:45:46 2005 +0000
     1.2 +++ b/src/video/SDL_stretch.c	Tue Nov 01 04:14:24 2005 +0000
     1.3 @@ -78,7 +78,7 @@
     1.4  
     1.5  	/* See if we need to regenerate the copy buffer */
     1.6  	if ( (src_w == last.src_w) &&
     1.7 -	     (dst_w == last.src_w) && (bpp == last.bpp) ) {
     1.8 +	     (dst_w == last.dst_w) && (bpp == last.bpp) ) {
     1.9  		return(0);
    1.10  	}
    1.11  	last.bpp = bpp;