mirror of https://github.com/OpenTTD/OpenTTD
(svn r18573) -Fix [FS#3198]: [OSX] Try to get a generic RGB colour space if getting the system colour profile failed. (tyler)
parent
b369d81566
commit
4d9097cafb
|
@ -167,6 +167,8 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace()
|
||||||
if (CMGetSystemProfile(&sysProfile) == noErr) {
|
if (CMGetSystemProfile(&sysProfile) == noErr) {
|
||||||
colorSpace = CGColorSpaceCreateWithPlatformColorSpace(sysProfile);
|
colorSpace = CGColorSpaceCreateWithPlatformColorSpace(sysProfile);
|
||||||
CMCloseProfile(sysProfile);
|
CMCloseProfile(sysProfile);
|
||||||
|
} else {
|
||||||
|
colorSpace = CGColorSpaceCreateDeviceRGB();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (colorSpace == NULL) error("Could not get system colour space. You might need to recalibrate your monitor.");
|
if (colorSpace == NULL) error("Could not get system colour space. You might need to recalibrate your monitor.");
|
||||||
|
|
Loading…
Reference in New Issue