diff options
author | michi_cc <michi_cc@openttd.org> | 2009-12-20 16:10:44 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-12-20 16:10:44 +0000 |
commit | 4d9097cafb39ecdc2b8f5e6ba42fe3c9e1d3f20b (patch) | |
tree | 4bf0692262d76504c2b38e99fcda204cb388c0f1 /src/video | |
parent | b369d81566ab024ae6ef67c1744ed7137778c854 (diff) | |
download | openttd-4d9097cafb39ecdc2b8f5e6ba42fe3c9e1d3f20b.tar.xz |
(svn r18573) -Fix [FS#3198]: [OSX] Try to get a generic RGB colour space if getting the system colour profile failed. (tyler)
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/cocoa/wnd_quartz.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index d99a1877b..76608f8ef 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -167,6 +167,8 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace() 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."); |