summaryrefslogtreecommitdiff
path: root/src/video/cocoa/cocoa_v.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/cocoa/cocoa_v.mm')
-rw-r--r--src/video/cocoa/cocoa_v.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm
index 7e09b3d7d..c875bd5a3 100644
--- a/src/video/cocoa/cocoa_v.mm
+++ b/src/video/cocoa/cocoa_v.mm
@@ -233,7 +233,12 @@ void QZ_GameSizeChanged()
static CocoaSubdriver *QZ_CreateWindowSubdriver(int width, int height, int bpp)
{
- // For now there is only the quickdraw window mode subdriver, but a pure quartz one should be added.
+ long sysVersion;
+
+ if (Gestalt(gestaltSystemVersion, &sysVersion) == noErr && sysVersion >= 0x1040) {
+ return QZ_CreateWindowQuartzSubdriver(width, height, bpp);
+ }
+
return QZ_CreateWindowQuickdrawSubdriver(width, height, bpp);
}