Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoashape.m @ 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 | 7160e833c4ac |
children | 8dabd625079f |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoashape.m Tue Aug 03 21:56:05 2010 -0400 +++ b/src/video/cocoa/SDL_cocoashape.m Tue Aug 03 23:22:31 2010 -0400 @@ -59,7 +59,7 @@ return [[((SDL_WindowData*)window->driverdata)->nswindow contentView] convertRectFromBase:nsrect]; } -void ConglomerateShapeTree(SDL_ShapeTree* tree,SDL_PathConglomeration cong) { +void ConglomerateShapeTree(SDL_ShapeTree* tree,SDL_PathConglomeration* cong) { if(tree->kind == OpaqueShape) { NSRect rect = convert_rect(tree->data.shape,cong->window); [cong->clipPath appendBezierPathWithRect:rect]; @@ -84,7 +84,7 @@ SDL_PathConglomeration cong = {clipPath,shaper->window}; - SDL_TraverseShapeTree(data->shape,&ConglomerateShapeTree,cong); + SDL_TraverseShapeTree(data->shape,(SDL_TraversalFunction)&ConglomerateShapeTree,(void*)&cong); [clipPath addClip]; }