src/video/ps2gs/SDL_gsyuv.c
changeset 136 717f739d6ec1
parent 70 f590dd383b5d
child 252 e8157fcb3114
     1.1 --- a/src/video/ps2gs/SDL_gsyuv.c	Wed Aug 01 05:01:08 2001 +0000
     1.2 +++ b/src/video/ps2gs/SDL_gsyuv.c	Wed Aug 01 08:41:45 2001 +0000
     1.3 @@ -223,7 +223,7 @@
     1.4  	fbp = screen_image.fbp;
     1.5  	fbw = screen_image.fbw;
     1.6  	psm = screen_image.psm;
     1.7 -	y = screen_image.h;	/* Offscreen video memory */
     1.8 +	y = screen_image.y + screen_image.h;	/* Offscreen video memory */
     1.9  	for ( h=height/16; h; --h ) {
    1.10  		x = 0;			/* Visible video memory */
    1.11  		for ( w=width/16; w; --w ) {
    1.12 @@ -273,7 +273,7 @@
    1.13  	tex_packet.len = 8 * sizeof(*tags);
    1.14  	tags[0] = 3 | (1LL << 60);	/* GIFtag */
    1.15  	tags[1] = 0x0e;			/* A+D */
    1.16 -	tags[2] = (screen_image.h * screen_image.w) / 64 +
    1.17 +	tags[2] = ((screen_image.y + screen_image.h) * screen_image.w) / 64 +
    1.18  	          ((unsigned long long)fbw << 14) +
    1.19  	          ((unsigned long long)psm << 20) +
    1.20  	          ((unsigned long long)power_of_2(width) << 26) +
    1.21 @@ -437,6 +437,7 @@
    1.22  		     screen->format->BytesPerPixel;
    1.23  		y += (screen->offset / screen->pitch);
    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;