src/video/SDL_shape_internals.h
changeset 4830 3dfe779900f5
parent 4817 c68e7490e4cf
child 4837 2e446923c9fb
     1.1 --- a/src/video/SDL_shape_internals.h	Tue Aug 03 21:56:05 2010 -0400
     1.2 +++ b/src/video/SDL_shape_internals.h	Tue Aug 03 23:22:31 2010 -0400
     1.3 @@ -51,10 +51,12 @@
     1.4  	SDL_ShapeKind kind;
     1.5  	SDL_ShapeUnion data;
     1.6  } SDL_ShapeTree;
     1.7 +	
     1.8 +typedef void(*SDL_TraversalFunction)(SDL_ShapeTree*,void*);
     1.9  
    1.10  extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb);
    1.11  extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape,SDL_bool invert);
    1.12 -extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,void(*function)(SDL_ShapeTree*,void*),void* closure);
    1.13 +extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,SDL_TraversalFunction function,void* closure);
    1.14  extern void SDL_FreeShapeTree(SDL_ShapeTree** shapeTree);
    1.15  
    1.16  /* Ends C function definitions when using C++ */