forked from qt-creator/qt-creator
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			616 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			616 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								--- 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)
							 |