aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/patch.txt
blob: f541f32780492707ed12f14e114df90bbf72a4aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/gui/painting/qpaintengine_mac.cpp
+++ src/gui/painting/qpaintengine_mac.cpp
@@ -340,13 +340,7 @@
     }

     // Get the color space from the display profile.
-    CGColorSpaceRef colorSpace = 0;
-    CMProfileRef displayProfile = 0;
-    CMError err = CMGetProfileByAVID((CMDisplayIDType)displayID, &displayProfile);
-    if (err == noErr) {
-        colorSpace = CGColorSpaceCreateWithPlatformColorSpace(displayProfile);
-        CMCloseProfile(displayProfile);
-    }
+    CGColorSpaceRef colorSpace = CGDisplayCopyColorSpace(displayID);

     // Fallback: use generic DeviceRGB
     if (colorSpace == 0)