22 #include "../../SDL_internal.h"
24 #if SDL_VIDEO_DRIVER_COCOA
29 #include "../SDL_sysvideo.h"
38 [windata->
nswindow setStyleMask:NSWindowStyleMaskBorderless];
43 result->mode.parameters.binarizationCutoff = 1;
49 data->context = [windata->nswindow graphicsContext];
67 SDL_CocoaClosure*
data = (SDL_CocoaClosure*)closure;
70 [data->path appendBezierPathWithRect:[data->view convertRect:rect toView:nil]];
80 SDL_CocoaClosure closure;
82 [data->context restoreGraphicsState];
88 [NSGraphicsContext setCurrentContext:data->context];
90 [[NSColor clearColor] set];
94 closure.view = [windata->nswindow contentView];
95 closure.path = [NSBezierPath bezierPath];
96 closure.window = shaper->
window;
98 [closure.path addClip];