src/video/ps2gs/SDL_gsyuv.c
branchSDL-1.3
changeset 1659 14717b52abc0
parent 1643 51038e80ae59
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
     1.1 --- a/src/video/ps2gs/SDL_gsyuv.c	Mon May 01 06:58:33 2006 +0000
     1.2 +++ b/src/video/ps2gs/SDL_gsyuv.c	Wed May 17 08:18:28 2006 +0000
     1.3 @@ -325,7 +325,7 @@
     1.4  	int lum_pitch;
     1.5  	int crb_pitch;
     1.6  	Uint32 *lum_src, *Cr_src, *Cb_src;
     1.7 -	Uint32 *src, *dst;
     1.8 +	Uint32 *srcp, *dstp;
     1.9  	unsigned int x, y;
    1.10  	SDL_Surface *screen;
    1.11  
    1.12 @@ -345,7 +345,7 @@
    1.13  		SDL_SetError("Unsupported YUV format in blit (?)");
    1.14  		return(-1);
    1.15  	}
    1.16 -	dst = (Uint32 *)hwdata->ipu_imem;
    1.17 +	dstp = (Uint32 *)hwdata->ipu_imem;
    1.18  	lum_pitch = overlay->w/4;
    1.19  	crb_pitch = (overlay->w/2)/4;
    1.20  
    1.21 @@ -355,28 +355,28 @@
    1.22  		Cr_src = Cr;
    1.23  		Cb_src = Cb;
    1.24  		for ( w=overlay->w/16; w; --w ) {
    1.25 -			src = lum_src;
    1.26 +			srcp = lum_src;
    1.27  			for ( i=0; i<16; ++i ) {
    1.28 -				dst[0] = src[0];
    1.29 -				dst[1] = src[1];
    1.30 -				dst[2] = src[2];
    1.31 -				dst[3] = src[3];
    1.32 -				src += lum_pitch;
    1.33 -				dst += 4;
    1.34 +				dstp[0] = srcp[0];
    1.35 +				dstp[1] = srcp[1];
    1.36 +				dstp[2] = srcp[2];
    1.37 +				dstp[3] = srcp[3];
    1.38 +				srcp += lum_pitch;
    1.39 +				dstp += 4;
    1.40  			}
    1.41 -			src = Cb_src;
    1.42 +			srcp = Cb_src;
    1.43  			for ( i=0; i<8; ++i ) {
    1.44 -				dst[0] = src[0];
    1.45 -				dst[1] = src[1];
    1.46 -				src += crb_pitch;
    1.47 -				dst += 2;
    1.48 +				dstp[0] = srcp[0];
    1.49 +				dstp[1] = srcp[1];
    1.50 +				srcp += crb_pitch;
    1.51 +				dstp += 2;
    1.52  			}
    1.53 -			src = Cr_src;
    1.54 +			srcp = Cr_src;
    1.55  			for ( i=0; i<8; ++i ) {
    1.56 -				dst[0] = src[0];
    1.57 -				dst[1] = src[1];
    1.58 -				src += crb_pitch;
    1.59 -				dst += 2;
    1.60 +				dstp[0] = srcp[0];
    1.61 +				dstp[1] = srcp[1];
    1.62 +				srcp += crb_pitch;
    1.63 +				dstp += 2;
    1.64  			}
    1.65  			lum_src += 16 / 4;
    1.66  			Cb_src += 8 / 4;