# HG changeset patch # User Sam Lantinga # Date 1147762407 0 # Node ID 3d138844ceabcd73734183e0bbd4ecbe6c4d9fc5 # Parent 6987e947c77ac87a04c56a5a3d5dc322dad470fa Fixed compiling GS YUV conversion code diff -r 6987e947c77a -r 3d138844ceab src/video/ps2gs/SDL_gsyuv.c --- a/src/video/ps2gs/SDL_gsyuv.c Tue May 16 03:58:08 2006 +0000 +++ b/src/video/ps2gs/SDL_gsyuv.c Tue May 16 06:53:27 2006 +0000 @@ -325,7 +325,7 @@ int lum_pitch; int crb_pitch; Uint32 *lum_src, *Cr_src, *Cb_src; - Uint32 *src, *dst; + Uint32 *srcp, *dstp; unsigned int x, y; SDL_Surface *screen; @@ -345,7 +345,7 @@ SDL_SetError("Unsupported YUV format in blit (?)"); return(-1); } - dst = (Uint32 *)hwdata->ipu_imem; + dstp = (Uint32 *)hwdata->ipu_imem; lum_pitch = overlay->w/4; crb_pitch = (overlay->w/2)/4; @@ -355,28 +355,28 @@ Cr_src = Cr; Cb_src = Cb; for ( w=overlay->w/16; w; --w ) { - src = lum_src; + srcp = lum_src; for ( i=0; i<16; ++i ) { - dst[0] = src[0]; - dst[1] = src[1]; - dst[2] = src[2]; - dst[3] = src[3]; - src += lum_pitch; - dst += 4; + dstp[0] = srcp[0]; + dstp[1] = srcp[1]; + dstp[2] = srcp[2]; + dstp[3] = srcp[3]; + srcp += lum_pitch; + dstp += 4; } - src = Cb_src; + srcp = Cb_src; for ( i=0; i<8; ++i ) { - dst[0] = src[0]; - dst[1] = src[1]; - src += crb_pitch; - dst += 2; + dstp[0] = srcp[0]; + dstp[1] = srcp[1]; + srcp += crb_pitch; + dstp += 2; } - src = Cr_src; + srcp = Cr_src; for ( i=0; i<8; ++i ) { - dst[0] = src[0]; - dst[1] = src[1]; - src += crb_pitch; - dst += 2; + dstp[0] = srcp[0]; + dstp[1] = srcp[1]; + srcp += crb_pitch; + dstp += 2; } lum_src += 16 / 4; Cb_src += 8 / 4;