(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.

This commit is contained in:
egladil
2007-11-23 02:44:05 +00:00
parent 9d3cc5b271
commit 2ebf50e421
5 changed files with 824 additions and 9 deletions

View File

@@ -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);
}