comparison src/video/SDL_shape.c @ 4830:3dfe779900f5

Compiling for cocoa now works. Does it run? We'll see.
author egottlieb
date Tue, 03 Aug 2010 23:22:31 -0400
parents 5660aac926e9
children 0c82f20327ec
comparison
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);