Skip to content

Commit

Permalink
cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!)
Browse files Browse the repository at this point in the history
Fixes bug #4368
  • Loading branch information
slime73 committed Nov 11, 2018
1 parent 5029d50 commit c525ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1185,7 +1185,7 @@ -(void) updateLayer
/* Force the graphics context to clear to black so we don't get a flash of
white until the app is ready to draw. In practice on modern macOS, this
only gets called for window creation and other extraordinary events. */
self.layer.backgroundColor = NSColor.blackColor.CGColor;
self.layer.backgroundColor = CGColorGetConstantColor(kCGColorBlack);
ScheduleContextUpdates((SDL_WindowData *) _sdlWindow->driverdata);
SDL_SendWindowEvent(_sdlWindow, SDL_WINDOWEVENT_EXPOSED, 0, 0);
}
Expand Down

0 comments on commit c525ff3

Please sign in to comment.