Changeset - r8982:67b2b7f54863
[Not reviewed]
master
0 1 0
egladil - 16 years ago 2008-04-18 21:21:25
egladil@openttd.org
(svn r12776) -Fix: [OSX] In some rare cases when using an uncalibrated monitor the system colour space could not be retrieved. Show an error when this happens instead of just trying an assertion.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/video/cocoa/wnd_quartz.mm
Show inline comments
 
@@ -175,7 +175,8 @@ static CGColorSpaceRef QZ_GetCorrectColo
 
			CMCloseProfile(sysProfile);
 
		}
 

	
 
		assert(colorSpace != NULL);
 
		if (colorSpace == NULL)
 
			error("Could not get system colour space. You might need to recalibrate your monitor.");
 
	}
 

	
 
	return colorSpace;
0 comments (0 inline, 0 general)