src/video/SDL_shape.c
changeset 4830 3dfe779900f5
parent 4827 5660aac926e9
child 4832 0c82f20327ec
equal deleted inserted replaced
4829:7160e833c4ac 4830:3dfe779900f5
   194 	if(SDL_MUSTLOCK(shape))
   194 	if(SDL_MUSTLOCK(shape))
   195 		SDL_UnlockSurface(shape);
   195 		SDL_UnlockSurface(shape);
   196 	return result;
   196 	return result;
   197 }
   197 }
   198 
   198 
   199 void SDL_TraverseShapeTree(SDL_ShapeTree *tree,void(*function)(SDL_ShapeTree*,void*),void* closure) {
   199 void SDL_TraverseShapeTree(SDL_ShapeTree *tree,SDL_TraversalFunction function,void* closure) {
   200 	if(tree->kind == QuadShape) {
   200 	if(tree->kind == QuadShape) {
   201 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.upleft,function,closure);
   201 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.upleft,function,closure);
   202 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.upright,function,closure);
   202 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.upright,function,closure);
   203 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.downleft,function,closure);
   203 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.downleft,function,closure);
   204 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.downright,function,closure);
   204 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.downright,function,closure);