Some patches to make SDL compile with armcc (ARM's C compiler).

This commit is contained in:
Ryan C. Gordon
2017-03-02 13:33:04 -05:00
parent 94a69443c7
commit d526b8a1e9
5 changed files with 15 additions and 6 deletions

View File

@@ -206,8 +206,14 @@ RecursivelyCalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* mask,SDL_Rec
SDL_ShapeTree*
SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape)
{
SDL_Rect dimensions = {0,0,shape->w,shape->h};
SDL_Rect dimensions;
SDL_ShapeTree* result = NULL;
dimensions.x = 0;
dimensions.y = 0;
dimensions.w = shape->w;
dimensions.h = shape->h;
if(SDL_MUSTLOCK(shape))
SDL_LockSurface(shape);
result = RecursivelyCalculateShapeTree(mode,shape,dimensions);