comparison src/video/SDL_stretch.c @ 1164:10b3fb28c86b

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
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 01 Nov 2005 04:14:24 +0000
parents 1d1a823904d8
children f4a3a4129d04
comparison
equal deleted inserted replaced
1163:96ef83467667 1164:10b3fb28c86b
76 unsigned char *eip; 76 unsigned char *eip;
77 unsigned char load, store; 77 unsigned char load, store;
78 78
79 /* See if we need to regenerate the copy buffer */ 79 /* See if we need to regenerate the copy buffer */
80 if ( (src_w == last.src_w) && 80 if ( (src_w == last.src_w) &&
81 (dst_w == last.src_w) && (bpp == last.bpp) ) { 81 (dst_w == last.dst_w) && (bpp == last.bpp) ) {
82 return(0); 82 return(0);
83 } 83 }
84 last.bpp = bpp; 84 last.bpp = bpp;
85 last.src_w = src_w; 85 last.src_w = src_w;
86 last.dst_w = dst_w; 86 last.dst_w = dst_w;