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
commit8e49daf3e1a773719410c2041caa711627ca788f (patch)
treebb56e3c87014005b7d57020cb9e3e996b58175aa /src/video
parente5eac05c6e8b702afbc8b9a9590f596e4b36ead0 (diff)
downloadopenttd-8e49daf3e1a773719410c2041caa711627ca788f.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;