src/video/ps2gs/SDL_gsyuv.c
changeset 1643 51038e80ae59
parent 1402 d910939febfa
child 1659 14717b52abc0
     1.1 --- a/src/video/ps2gs/SDL_gsyuv.c	Mon Apr 17 05:38:33 2006 +0000
     1.2 +++ b/src/video/ps2gs/SDL_gsyuv.c	Mon Apr 17 06:47:23 2006 +0000
     1.3 @@ -315,7 +315,7 @@
     1.4  	return;
     1.5  }
     1.6  
     1.7 -int GS_DisplayYUVOverlay(_THIS, SDL_Overlay *overlay, SDL_Rect *dstrect)
     1.8 +int GS_DisplayYUVOverlay(_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst)
     1.9  {
    1.10  	struct private_yuvhwdata *hwdata;
    1.11  	__u32 cmd;
    1.12 @@ -423,8 +423,8 @@
    1.13  
    1.14  	/* Send the current image to the screen and scale it */
    1.15  	screen = this->screen;
    1.16 -	x = (unsigned int)dstrect->x;
    1.17 -	y = (unsigned int)dstrect->y;
    1.18 +	x = (unsigned int)dst->x;
    1.19 +	y = (unsigned int)dst->y;
    1.20  	if ( screen->offset ) {
    1.21  		x += (screen->offset % screen->pitch) /
    1.22  		     screen->format->BytesPerPixel;
    1.23 @@ -432,8 +432,8 @@
    1.24  	}
    1.25  	y += screen_image.y;
    1.26  	*hwdata->stretch_x1y1 = (x * 16) + ((y * 16) << 16);
    1.27 -	x += (unsigned int)dstrect->w;
    1.28 -	y += (unsigned int)dstrect->h;
    1.29 +	x += (unsigned int)dst->w;
    1.30 +	y += (unsigned int)dst->h;
    1.31  	*hwdata->stretch_x2y2 = (x * 16) + ((y * 16) << 16);
    1.32  	return ioctl(console_fd, PS2IOC_SENDL, &hwdata->plist);
    1.33  }