From 3be4300ddd47b190798157640b5318e6dd85be9c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 20 May 2013 23:30:08 -0700 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 010a9b41a..f12e25be1 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -690,6 +690,7 @@ - (void)resetCursorRects } } 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]];