test/testoverlay.c
changeset 605 6399f4e90211
parent 603 2e726be3dc08
child 1151 be9c9c8f6d53
     1.1 --- a/test/testoverlay.c	Thu Mar 06 06:02:16 2003 +0000
     1.2 +++ b/test/testoverlay.c	Thu Mar 06 06:12:41 2003 +0000
     1.3 @@ -92,7 +92,7 @@
     1.4  	/* Convert */
     1.5  	for(y=0; y<s->h && y<o->h; y++)
     1.6  	{
     1.7 -		p=s->pixels+s->pitch*y;
     1.8 +		p=((Uint8 *) s->pixels)+s->pitch*y;
     1.9  		op[0]=o->pixels[0]+o->pitches[0]*y;
    1.10  		op[1]=o->pixels[1]+o->pitches[1]*(y/2);
    1.11  		op[2]=o->pixels[2]+o->pitches[2]*(y/2);
    1.12 @@ -132,7 +132,7 @@
    1.13  	/* Convert */
    1.14  	for(y=0; y<s->h && y<o->h; y++)
    1.15  	{
    1.16 -		p=s->pixels+s->pitch*y;
    1.17 +		p=((Uint8 *) s->pixels)+s->pitch*y;
    1.18  		op[0]=o->pixels[0]+o->pitches[0]*y;
    1.19  		op[1]=o->pixels[1]+o->pitches[1]*(y/2);
    1.20  		op[2]=o->pixels[2]+o->pitches[2]*(y/2);
    1.21 @@ -164,7 +164,7 @@
    1.22  
    1.23  	for(y=0; y<s->h && y<o->h; y++)
    1.24  	{
    1.25 -		p=s->pixels+s->pitch*y;
    1.26 +		p=((Uint8 *) s->pixels)+s->pitch*y;
    1.27  		op=o->pixels[0]+o->pitches[0]*y;
    1.28  		for(x=0; x<s->w && x<o->w; x++)
    1.29  		{
    1.30 @@ -197,7 +197,7 @@
    1.31  
    1.32  	for(y=0; y<s->h && y<o->h; y++)
    1.33  	{
    1.34 -		p=s->pixels+s->pitch*y;
    1.35 +		p=((Uint8 *) s->pixels)+s->pitch*y;
    1.36  		op=o->pixels[0]+o->pitches[0]*y;
    1.37  		for(x=0; x<s->w && x<o->w; x++)
    1.38  		{
    1.39 @@ -233,7 +233,7 @@
    1.40  
    1.41  	for(y=0; y<s->h && y<o->h; y++)
    1.42  	{
    1.43 -		p=s->pixels+s->pitch*y;
    1.44 +		p=((Uint8 *) s->pixels)+s->pitch*y;
    1.45  		op=o->pixels[0]+o->pitches[0]*y;
    1.46  		for(x=0; x<s->w && x<o->w; x++)
    1.47  		{