Fixed bug 1148 - SDL window white upon first appearing
authorSam Lantinga <slouken@libsdl.org>
Mon, 20 May 2013 23:30:08 -0700
changeset 7202373d9e4e8ad9
parent 7201 c6b3d3c32507
child 7203 c74f5dbcfd23
Fixed bug 1148 - SDL window white upon first appearing

To be consistent with other platforms, we'll use black as the background color.
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Mon May 20 23:04:25 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Mon May 20 23:30:08 2013 -0700
     1.3 @@ -690,6 +690,7 @@
     1.4          }
     1.5      }
     1.6      nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:NO screen:screen];
     1.7 +    [nswindow setBackgroundColor:NSColor.blackColor];
     1.8  
     1.9      /* Create a default view for this window */
    1.10      rect = [nswindow contentRectForFrameRect:[nswindow frame]];