diff options
author | egladil <egladil@openttd.org> | 2007-11-23 02:44:05 +0000 |
---|---|---|
committer | egladil <egladil@openttd.org> | 2007-11-23 02:44:05 +0000 |
commit | 0fce8dbf1f54b922b3dc8adf8c96f57221451752 (patch) | |
tree | 3b1ce956335dc5ebbf0984361217fe6f5f42c13f /src/video/cocoa/cocoa_v.mm | |
parent | d3ea6fc1ea0d4dc04f421fae9112d8207c4a21c3 (diff) | |
download | openttd-0fce8dbf1f54b922b3dc8adf8c96f57221451752.tar.xz |
(svn r11498) -Add [FS#1411]: [OSX] Added support for using Quartz instead of Quickdraw in windowed mode on OS X 10.4 and higher. Based on a patch by blackis.
Diffstat (limited to 'src/video/cocoa/cocoa_v.mm')
-rw-r--r-- | src/video/cocoa/cocoa_v.mm | 7 |
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); } |