summaryrefslogtreecommitdiff
path: root/src/video/cocoa/wnd_quartz.mm
diff options
context:
space:
mode:
authoregladil <egladil@openttd.org>2007-12-17 07:47:21 +0000
committeregladil <egladil@openttd.org>2007-12-17 07:47:21 +0000
commit2885c660603b09547dfa95bd1fd10e5b8696a05b (patch)
treefdea3d4a12c2e7ff0a33ec90ed275295f25ace28 /src/video/cocoa/wnd_quartz.mm
parent93c3e0d6ada1761431bb39060bbc3a7ab95803f1 (diff)
downloadopenttd-2885c660603b09547dfa95bd1fd10e5b8696a05b.tar.xz
(svn r11653) -Feature: [OSX] Allow windowed mode subdrivers to be disabled at compile time.
Diffstat (limited to 'src/video/cocoa/wnd_quartz.mm')
-rw-r--r--src/video/cocoa/wnd_quartz.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm
index 493e80260..00a8ad9ba 100644
--- a/src/video/cocoa/wnd_quartz.mm
+++ b/src/video/cocoa/wnd_quartz.mm
@@ -7,6 +7,7 @@
******************************************************************************/
#ifdef WITH_COCOA
+#ifdef ENABLE_COCOA_QUARTZ
#include <AvailabilityMacros.h>
@@ -782,8 +783,8 @@ CocoaSubdriver *QZ_CreateWindowQuartzSubdriver(int width, int height, int bpp)
{
WindowQuartzSubdriver *ret;
- if (!MacOSVersionIsAtLeast(10, 5, 0)) {
- DEBUG(driver, 0, "The cocoa quartz subdriver requires Mac OS X 10.5 or later.");
+ if (!MacOSVersionIsAtLeast(10, 4, 0)) {
+ DEBUG(driver, 0, "The cocoa quartz subdriver requires Mac OS X 10.4 or later.");
return NULL;
}
@@ -802,5 +803,7 @@ CocoaSubdriver *QZ_CreateWindowQuartzSubdriver(int width, int height, int bpp)
return ret;
}
+
#endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 */
+#endif /* ENABLE_COCOA_QUARTZ */
#endif /* WITH_COCOA */