src/video/cocoa/SDL_cocoawindow.m
changeset 12405 5a95fbfd3617
parent 12404 eb60e952b13f
child 12424 6b3a68e3dd06
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sat Nov 10 16:15:48 2018 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sat Nov 10 20:56:23 2018 -0400
     1.3 @@ -1185,7 +1185,7 @@
     1.4      /* Force the graphics context to clear to black so we don't get a flash of
     1.5         white until the app is ready to draw. In practice on modern macOS, this
     1.6         only gets called for window creation and other extraordinary events. */
     1.7 -    self.layer.backgroundColor = NSColor.blackColor.CGColor;
     1.8 +    self.layer.backgroundColor = CGColorGetConstantColor(kCGColorBlack);
     1.9      ScheduleContextUpdates((SDL_WindowData *) _sdlWindow->driverdata);
    1.10      SDL_SendWindowEvent(_sdlWindow, SDL_WINDOWEVENT_EXPOSED, 0, 0);
    1.11  }