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

the second comparison should be (dst_w == last dst_w).
Perhaps someone could apply it to the source…

Good catch: this is in CVS now.

Thanks,
–ryan.

the second comparison should be (dst_w == last dst_w).
Perhaps someone could apply it to the source…

Done, thanks!

-Sam Lantinga, Software Engineer, Blizzard Entertainment

Sam Lantinga wrote:

the second comparison should be (dst_w == last dst_w).
Perhaps someone could apply it to the source…

Done, thanks!

Hah, 100 yard CVS commit dash. :slight_smile:

–ryan.

Sam Lantinga wrote:

the second comparison should be (dst_w == last dst_w).
Perhaps someone could apply it to the source…

Done, thanks!

Hah, 100 yard CVS commit dash. :slight_smile:

Ryan won, by a nose! :slight_smile:

-Sam Lantinga, Software Engineer, Blizzard Entertainment