Skip to content

Commit

Permalink
Date: Mon, 31 Oct 2005 14:23:34 +0100
Browse files Browse the repository at this point in the history
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
  • Loading branch information
icculus committed Nov 1, 2005
1 parent 57632d9 commit 3bf26a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_stretch.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3bf26a8

Please sign in to comment.