mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
macOS: Fix an unguarded availability warning
This commit is contained in:
parent
68ad0ef3d8
commit
9c6ce98a54
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue