changeset 14030:827c5497bff0 draft

(svn r18573) -Fix [FS#3198]: [OSX] Try to get a generic RGB colour space if getting the system colour profile failed. (tyler)
author michi_cc <michi_cc@openttd.org>
date Sun, 20 Dec 2009 16:10:44 +0000
parents fd863f5283b0
children c603550031d4
files src/video/cocoa/wnd_quartz.mm
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/cocoa/wnd_quartz.mm
+++ b/src/video/cocoa/wnd_quartz.mm
@@ -167,6 +167,8 @@
 		if (CMGetSystemProfile(&sysProfile) == noErr) {
 			colorSpace = CGColorSpaceCreateWithPlatformColorSpace(sysProfile);
 			CMCloseProfile(sysProfile);
+		} else {
+			colorSpace = CGColorSpaceCreateDeviceRGB();
 		}
 
 		if (colorSpace == NULL) error("Could not get system colour space. You might need to recalibrate your monitor.");