Fixed bug 1148 - SDL window white upon first appearing

To be consistent with other platforms, we'll use black as the background color.
This commit is contained in:
Sam Lantinga 2013-05-20 23:30:08 -07:00
parent 3d5e0ce562
commit 44ae527164

View file

@ -690,6 +690,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
}
}
nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:NO screen:screen];
[nswindow setBackgroundColor:NSColor.blackColor];
/* Create a default view for this window */
rect = [nswindow contentRectForFrameRect:[nswindow frame]];