summaryrefslogtreecommitdiff
path: root/src/video/cocoa/fullscreen.mm
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-11-08 20:18:31 +0000
committermichi_cc <michi_cc@openttd.org>2013-11-08 20:18:31 +0000
commita41b8c851d33b7a45e8c93d1759d2cbdda031358 (patch)
treeabbc3ff95479e1edd7a57c3e29056480d1509f86 /src/video/cocoa/fullscreen.mm
parenta298a6209831e068818540ed12c728a4fb299d1c (diff)
downloadopenttd-a41b8c851d33b7a45e8c93d1759d2cbdda031358.tar.xz
(svn r25951) -Fix [FS#5797]: [OSX] Disable the old fullscreen sub-driver when compiling with SDK versions 10.9+.
Diffstat (limited to 'src/video/cocoa/fullscreen.mm')
-rw-r--r--src/video/cocoa/fullscreen.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video/cocoa/fullscreen.mm b/src/video/cocoa/fullscreen.mm
index 2d8472e7d..0683a1adb 100644
--- a/src/video/cocoa/fullscreen.mm
+++ b/src/video/cocoa/fullscreen.mm
@@ -17,6 +17,8 @@
#include "../../stdafx.h"
+#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9
+
#define Rect OTTDRect
#define Point OTTDPoint
#import <Cocoa/Cocoa.h>
@@ -518,4 +520,5 @@ CocoaSubdriver *QZ_CreateFullscreenSubdriver(int width, int height, int bpp)
return ret;
}
+#endif /* MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 */
#endif /* WITH_COCOA */