From c525ff354d73f62da2a2dbeee6bc72db6006793a Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 10 Nov 2018 20:56:23 -0400 Subject: [PATCH] cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!) Fixes bug #4368 --- src/video/cocoa/SDL_cocoawindow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index ec2de82f31c4d..4503ae5c315ed 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -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); }