comparison 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
comparison
equal deleted inserted replaced
4805:de3b3455f8ec 4806:007567dbb8c1
66 pixel = (Uint8*)shape->pixels; 66 pixel = (Uint8*)shape->pixels;
67 for(y = 0;y<shape->h;y++) { 67 for(y = 0;y<shape->h;y++) {
68 for(x=0;x<shape->w;x++) { 68 for(x=0;x<shape->w;x++) {
69 alpha = 0; 69 alpha = 0;
70 pixel_value = 0; 70 pixel_value = 0;
71 pixel = shape->pixels + y * shape->pitch + x * shape->format->BytesPerPixel; 71 pixel = (Uint8 *)(shape->pixels) + (y*shape->pitch) + (x*shape->format->BytesPerPixel);
72 switch(shape->format->BytesPerPixel) { 72 switch(shape->format->BytesPerPixel) {
73 case(1): 73 case(1):
74 pixel_value = *(Uint8*)pixel; 74 pixel_value = *(Uint8*)pixel;
75 break; 75 break;
76 case(2): 76 case(2):