Reapplied Win32 make-it-build patch. What's going on? Still get rendering artifacts when testing on x11, have literally no idea why.
This commit is contained in:
parent
2d0aeb3f2e
commit
f9048e7257
3 changed files with 714 additions and 1 deletions
|
@ -68,7 +68,7 @@ void SDL_CalculateShapeBitmap(Uint8 alphacutoff,SDL_Surface *shape,Uint8* bitmap
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue