cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!)
authorAlex Szpakowski <slime73@gmail.com>
Sat, 10 Nov 2018 20:56:23 -0400
changeset 124055a95fbfd3617
parent 12404 eb60e952b13f
child 12406 d274fa9731b1
cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!)

Fixes bug #4368
src/video/cocoa/SDL_cocoawindow.m
     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  }