From 15cb9068b757394bff7a2e5141ccc49acd166190 Mon Sep 17 00:00:00 2001 From: kanjitalk755 Date: Tue, 7 Jan 2020 11:37:04 +0900 Subject: [PATCH 1/2] avoid build error of SheepShaver --- BasiliskII/src/MacOSX/utils_macosx.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BasiliskII/src/MacOSX/utils_macosx.mm b/BasiliskII/src/MacOSX/utils_macosx.mm index b2c66798..b7567805 100644 --- a/BasiliskII/src/MacOSX/utils_macosx.mm +++ b/BasiliskII/src/MacOSX/utils_macosx.mm @@ -55,6 +55,7 @@ void disable_SDL2_macosx_menu_bar_keyboard_shortcuts() { } } +#ifdef VIDEO_ROOTLESS void make_window_transparent(SDL_Window * window) { if (!window) { @@ -127,6 +128,7 @@ void update_window_mask_rects(SDL_Window * window, int h, const std::vector Date: Wed, 15 Jan 2020 18:52:53 +0900 Subject: [PATCH 2/2] in case no layer --- BasiliskII/src/MacOSX/utils_macosx.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/BasiliskII/src/MacOSX/utils_macosx.mm b/BasiliskII/src/MacOSX/utils_macosx.mm index b7567805..0674cf68 100644 --- a/BasiliskII/src/MacOSX/utils_macosx.mm +++ b/BasiliskII/src/MacOSX/utils_macosx.mm @@ -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];