mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Remove guards for older macOS and SDK versions
This commit is contained in:
1 parent
e548697a36
commit
eb6d16fdcf
3 files changed
+16
-33
No files matched your search
@@ -303,12 +303,7 @@ public:
|
||||
case COLORSPACE_REC_2020:
|
||||
// This is necessary to ensure HDR works properly with external displays on macOS Sonoma.
|
||||
if (frame->color_trc == AVCOL_TRC_SMPTE2084) {
|
||||
if (@available(macOS 11.0, *)) {
|
||||
m_ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2100_PQ);
|
||||
}
|
||||
else {
|
||||
m_ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2020);
|
||||
}
|
||||
m_ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2100_PQ);
|
||||
}
|
||||
else {
|
||||
m_ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2020);
|
||||
|
||||
Reference in new issue
Block a user