Created
July 7, 2015 01:38
-
-
Save ejtttje/7163a9ced64f12ae9444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/gui/painting/qpaintengine_mac.cpp 2015-05-07 07:14:43.000000000 -0700 | |
+++ b/src/gui/painting/qpaintengine_mac.cpp 2015-07-06 18:07:52.000000000 -0700 | |
@@ -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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's surely solved my problem, and save a lot of time. thx.