]> Creatis software - cpPlugins.git/blob - dependencies/qt-4.8.6_MAC.patch
f0d212210174054f6398a4536b456b47d8dd7525
[cpPlugins.git] / dependencies / qt-4.8.6_MAC.patch
1 --- src/gui/painting/qpaintengine_mac.cpp.orig  2015-05-07 14:14:43.000000000 +0000
2 +++ src/gui/painting/qpaintengine_mac.cpp
3 @@ -340,13 +340,7 @@ CGColorSpaceRef QCoreGraphicsPaintEngine
4      }
5  
6      // Get the color space from the display profile.
7 -    CGColorSpaceRef colorSpace = 0;
8 -    CMProfileRef displayProfile = 0;
9 -    CMError err = CMGetProfileByAVID((CMDisplayIDType)displayID, &displayProfile);
10 -    if (err == noErr) {
11 -        colorSpace = CGColorSpaceCreateWithPlatformColorSpace(displayProfile);
12 -        CMCloseProfile(displayProfile);
13 -    }
14 +    CGColorSpaceRef colorSpace = CGDisplayCopyColorSpace(displayID);
15  
16      // Fallback: use generic DeviceRGB
17      if (colorSpace == 0)
18