Fixed bug 1148 - SDL window white upon first appearing
authorSam Lantinga <slouken@libsdl.org>
Mon, 20 May 2013 23:30:08 -0700
changeset 7202 373d9e4e8ad9
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
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon May 20 23:04:25 2013 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Mon May 20 23:30:08 2013 -0700
@@ -690,6 +690,7 @@
         }
     }
     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]];