[patch] bad test in SDL_stretch.c

This patch fixes a trivial error in SDL_stretch.c that caused
unneeded dynamic code regeneration but could also crash the process.–
Sam.
-------------- next part --------------
diff -puriN SDL-1.2.9.orig/src/video/SDL_stretch.c SDL-1.2.9/src/video/SDL_stretch.c
— SDL-1.2.9.orig/src/video/SDL_stretch.c 2004-05-16 23:08:55 +0200
+++ SDL-1.2.9/src/video/SDL_stretch.c 2006-03-01 11:04:05 +0100
@@ -80,7 +80,7 @@ static int generate_rowbytes(int src_w,

/* 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;

already been fixed in cvs
-mikeOn Wednesday 01 March 2006 17:57, Sam Hocevar wrote:

This patch fixes a trivial error in SDL_stretch.c that caused
unneeded dynamic code regeneration but could also crash the process.