Browse Source

macOS: Fix an unguarded availability warning

pull/22/head
Tom Poole 3 years ago
parent
commit
9c6ce98a54
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 1
- 1
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -1877,7 +1877,7 @@ private:
void updateCVDisplayLinkScreen()
{
auto viewDisplayID = (CGDirectDisplayID) [window.screen.deviceDescription[@"NSScreenNumber"] unsignedIntegerValue];
auto viewDisplayID = (CGDirectDisplayID) [[window.screen.deviceDescription objectForKey: @"NSScreenNumber"] unsignedIntegerValue];
auto result = CVDisplayLinkSetCurrentCGDisplay (displayLink, viewDisplayID);
jassertquiet (result == kCVReturnSuccess);
}


Loading…
Cancel
Save