diff --git src/video/cocoa/SDL_cocoawindow.m src/video/cocoa/SDL_cocoawindow.m
index a8e95cc..b9d9790 100644
|
|
SetWindowStyle(SDL_Window * window, NSUInteger style) |
1172 | 1172 | |
1173 | 1173 | -(void) updateLayer |
1174 | 1174 | { |
| 1175 | /* this is only called on 10.8+, so restricting the build to the 10.8+ SDK is OK */ |
| 1176 | #if MAC_OS_X_VERSION_MAX_ALLOWED > 1070 |
1175 | 1177 | /* Force the graphics context to clear to black so we don't get a flash of |
1176 | 1178 | white until the app is ready to draw. In practice on modern macOS, this |
1177 | 1179 | only gets called for window creation and other extraordinary events. */ |
1178 | 1180 | self.layer.backgroundColor = NSColor.blackColor.CGColor; |
1179 | 1181 | ScheduleContextUpdates((SDL_WindowData *) _sdlWindow->driverdata); |
1180 | 1182 | SDL_SendWindowEvent(_sdlWindow, SDL_WINDOWEVENT_EXPOSED, 0, 0); |
| 1183 | #endif /* MAC_OS_X_VERSION_MAX_ALLOWED > 1070 */ |
1181 | 1184 | } |
1182 | 1185 | |
1183 | 1186 | - (void)rightMouseDown:(NSEvent *)theEvent |