(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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user