summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authoregladil <egladil@openttd.org>2008-04-18 21:21:25 +0000
committeregladil <egladil@openttd.org>2008-04-18 21:21:25 +0000
commitcd7536123b6a9d7edefd96c989d02effe94f29b3 (patch)
treebb56e3c87014005b7d57020cb9e3e996b58175aa /src/video
parent36d3553b9b0b5b519bad9ee95c6d83d2daac1886 (diff)
downloadopenttd-cd7536123b6a9d7edefd96c989d02effe94f29b3.tar.xz
(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.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa/wnd_quartz.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm
index 6109c46dd..dfb59c31f 100644
--- a/src/video/cocoa/wnd_quartz.mm
+++ b/src/video/cocoa/wnd_quartz.mm
@@ -175,7 +175,8 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace()
CMCloseProfile(sysProfile);
}
- assert(colorSpace != NULL);
+ if (colorSpace == NULL)
+ error("Could not get system colour space. You might need to recalibrate your monitor.");
}
return colorSpace;