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:
parent
3d5e0ce562
commit
44ae527164
1 changed files with 1 additions and 0 deletions
|
@ -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]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue