summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2022-10-29 23:18:35 -0400
committerRye Mutt <rye@alchemyviewer.org>2022-10-29 23:18:35 -0400
commit971fd6f8433b07bbd51ef83f2de518ef8b20d07f (patch)
treead2aebad95854cd056a197cd754509cbdc1799d9
parentd89033420ef05b9b0a5751c3f254ce802e90df0b (diff)
Fix use of deprecated CGDisplayAvailableModes with CGDisplayCopyAllDisplayModes
-rw-r--r--indra/llwindow/llwindowmacosx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp
index 2fe0ed469e..f924b17090 100644
--- a/indra/llwindow/llwindowmacosx.cpp
+++ b/indra/llwindow/llwindowmacosx.cpp
@@ -1283,7 +1283,7 @@ LLWindow::LLWindowResolution* LLWindowMacOSX::getSupportedResolutions(S32 &num_r
{
if (!mSupportedResolutions)
{
- CFArrayRef modes = CGDisplayAvailableModes(mDisplay);
+ CFArrayRef modes = CGDisplayCopyAllDisplayModes(mDisplay, nullptr);
if(modes != NULL)
{
@@ -1322,6 +1322,7 @@ LLWindow::LLWindowResolution* LLWindowMacOSX::getSupportedResolutions(S32 &num_r
}
}
}
+ CFRelease(modes);
}
}