Skip to content

Commit d29bf9c

Browse files
committed
add new juce7 workaround patch for macOS 15 builds.
1 parent e0993a7 commit d29bf9c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/modules/juce_gui_basics/native/juce_Windowing_mac.mm b/modules/juce_gui_basics/native/juce_Windowing_mac.mm
2+
index ad459d483..32949d1b3 100644
3+
--- a/modules/juce_gui_basics/native/juce_Windowing_mac.mm
4+
+++ b/modules/juce_gui_basics/native/juce_Windowing_mac.mm
5+
@@ -529,10 +529,15 @@ static Image createNSWindowSnapshot (NSWindow* nsWindow)
6+
#define JUCE_DEPRECATION_IGNORED 1
7+
#endif
8+
9+
+ /*
10+
CGImageRef screenShot = CGWindowListCreateImage (CGRectNull,
11+
kCGWindowListOptionIncludingWindow,
12+
(CGWindowID) [nsWindow windowNumber],
13+
kCGWindowImageBoundsIgnoreFraming);
14+
+ */
15+
+ // Not supported anymore
16+
+ jassertfalse;
17+
+ CGImageRef screenShot = nullptr;
18+
19+
#if JUCE_DEPRECATION_IGNORED
20+
JUCE_END_IGNORE_WARNINGS_GCC_LIKE

0 commit comments

Comments
 (0)