mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 00:47:15 +00:00
Some patches to make SDL compile with armcc (ARM's C compiler).
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user