diff src/video/SDL_shape.c @ 4806:007567dbb8c1

Reapplied Win32 make-it-build patch. What's going on? Still get rendering artifacts when testing on x11, have literally no idea why.
author Eli Gottlieb <eligottlieb@gmail.com>
date Tue, 20 Jul 2010 12:42:43 -0400
parents f14a8c05f5bb
children c9eb95f29770
line wrap: on
line diff
--- a/src/video/SDL_shape.c	Mon Jul 19 00:24:02 2010 -0400
+++ b/src/video/SDL_shape.c	Tue Jul 20 12:42:43 2010 -0400
@@ -68,7 +68,7 @@
 		for(x=0;x<shape->w;x++) {
 			alpha = 0;
 			pixel_value = 0;
-			pixel = shape->pixels + y * shape->pitch + x * shape->format->BytesPerPixel;
+			pixel = (Uint8 *)(shape->pixels) + (y*shape->pitch) + (x*shape->format->BytesPerPixel);
 			switch(shape->format->BytesPerPixel) {
 				case(1):
 					pixel_value = *(Uint8*)pixel;