Commit f9048e72 authored by Eli Gottlieb's avatar Eli Gottlieb

Reapplied Win32 make-it-build patch. What's going on? Still get rendering...

Reapplied Win32 make-it-build patch.  What's going on?  Still get rendering artifacts when testing on x11, have literally no idea why.
parent 2d0aeb3f
This diff is collapsed.
This diff is collapsed.
...@@ -68,7 +68,7 @@ void SDL_CalculateShapeBitmap(Uint8 alphacutoff,SDL_Surface *shape,Uint8* bitmap ...@@ -68,7 +68,7 @@ void SDL_CalculateShapeBitmap(Uint8 alphacutoff,SDL_Surface *shape,Uint8* bitmap
for(x=0;x<shape->w;x++) { for(x=0;x<shape->w;x++) {
alpha = 0; alpha = 0;
pixel_value = 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) { switch(shape->format->BytesPerPixel) {
case(1): case(1):
pixel_value = *(Uint8*)pixel; pixel_value = *(Uint8*)pixel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment