equal
deleted
inserted
replaced
84 [NSGraphicsContext setCurrentContext:data->context]; |
84 [NSGraphicsContext setCurrentContext:data->context]; |
85 SDL_WindowData* window_data = (SDL_WindowData*)shaper->window->driverdata; |
85 SDL_WindowData* window_data = (SDL_WindowData*)shaper->window->driverdata; |
86 |
86 |
87 data->shape = SDL_CalculateShapeTree(*shapeMode,shape,SDL_FALSE); |
87 data->shape = SDL_CalculateShapeTree(*shapeMode,shape,SDL_FALSE); |
88 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
88 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
89 NSBezierPath* clipPath = [[NSBezierPath bezierPath] autorelease]; |
89 NSBezierPath* clipPath = [NSBezierPath bezierPath]; |
90 |
90 |
91 SDL_PathConglomeration cong = {clipPath,shaper->window}; |
91 SDL_PathConglomeration cong = {clipPath,shaper->window}; |
92 |
92 |
93 SDL_TraverseShapeTree(data->shape,(SDL_TraversalFunction)&ConglomerateShapeTree,(void*)&cong); |
93 SDL_TraverseShapeTree(data->shape,(SDL_TraversalFunction)&ConglomerateShapeTree,(void*)&cong); |
94 |
94 |
95 SDL_assert([NSGraphicsContext currentContext] != NULL); |
95 SDL_assert([NSGraphicsContext currentContext] != Nil); |
96 [clipPath addClip]; |
96 [clipPath addClip]; |
97 |
97 |
98 [NSGraphicsContext restoreGraphicsState]; |
98 [NSGraphicsContext restoreGraphicsState]; |
99 [pool release]; |
99 [pool release]; |
100 } |
100 } |