test/testoverlay.c
changeset 605 6399f4e90211
parent 603 2e726be3dc08
child 1151 be9c9c8f6d53
--- a/test/testoverlay.c	Thu Mar 06 06:02:16 2003 +0000
+++ b/test/testoverlay.c	Thu Mar 06 06:12:41 2003 +0000
@@ -92,7 +92,7 @@
 	/* Convert */
 	for(y=0; y<s->h && y<o->h; y++)
 	{
-		p=s->pixels+s->pitch*y;
+		p=((Uint8 *) s->pixels)+s->pitch*y;
 		op[0]=o->pixels[0]+o->pitches[0]*y;
 		op[1]=o->pixels[1]+o->pitches[1]*(y/2);
 		op[2]=o->pixels[2]+o->pitches[2]*(y/2);
@@ -132,7 +132,7 @@
 	/* Convert */
 	for(y=0; y<s->h && y<o->h; y++)
 	{
-		p=s->pixels+s->pitch*y;
+		p=((Uint8 *) s->pixels)+s->pitch*y;
 		op[0]=o->pixels[0]+o->pitches[0]*y;
 		op[1]=o->pixels[1]+o->pitches[1]*(y/2);
 		op[2]=o->pixels[2]+o->pitches[2]*(y/2);
@@ -164,7 +164,7 @@
 
 	for(y=0; y<s->h && y<o->h; y++)
 	{
-		p=s->pixels+s->pitch*y;
+		p=((Uint8 *) s->pixels)+s->pitch*y;
 		op=o->pixels[0]+o->pitches[0]*y;
 		for(x=0; x<s->w && x<o->w; x++)
 		{
@@ -197,7 +197,7 @@
 
 	for(y=0; y<s->h && y<o->h; y++)
 	{
-		p=s->pixels+s->pitch*y;
+		p=((Uint8 *) s->pixels)+s->pitch*y;
 		op=o->pixels[0]+o->pitches[0]*y;
 		for(x=0; x<s->w && x<o->w; x++)
 		{
@@ -233,7 +233,7 @@
 
 	for(y=0; y<s->h && y<o->h; y++)
 	{
-		p=s->pixels+s->pitch*y;
+		p=((Uint8 *) s->pixels)+s->pitch*y;
 		op=o->pixels[0]+o->pitches[0]*y;
 		for(x=0; x<s->w && x<o->w; x++)
 		{