mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-20 11:29:01 +00:00
in case no layer
This commit is contained in:
parent
15cb9068b7
commit
a11a61e48c
@ -74,6 +74,7 @@ void make_window_transparent(SDL_Window * window)
|
||||
CGColorRef clearColor = [NSColor clearColor].CGColor;
|
||||
NSWindow *cocoaWindow = wmInfo.info.cocoa.window;
|
||||
NSView *sdlView = cocoaWindow.contentView;
|
||||
sdlView.wantsLayer = YES;
|
||||
sdlView.layer.backgroundColor = [NSColor clearColor].CGColor;
|
||||
if (SDL_GetWindowData(window, "observing") == NULL) {
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
|
Loading…
x
Reference in New Issue
Block a user