src/video/cocoa/cocoa_v.mm
changeset 8439 bc2f9dfa0d40
parent 8435 38a1ab65d6e4
child 8448 a59e637a8eb3
equal deleted inserted replaced
8438:8ff41e5847b7 8439:bc2f9dfa0d40
   231 }
   231 }
   232 
   232 
   233 
   233 
   234 static CocoaSubdriver *QZ_CreateWindowSubdriver(int width, int height, int bpp)
   234 static CocoaSubdriver *QZ_CreateWindowSubdriver(int width, int height, int bpp)
   235 {
   235 {
   236 	// For now there is only the quickdraw window mode subdriver, but a pure quartz one should be added.
   236 	long sysVersion;
       
   237 
       
   238 	if (Gestalt(gestaltSystemVersion, &sysVersion) == noErr && sysVersion >= 0x1040) {
       
   239 		return QZ_CreateWindowQuartzSubdriver(width, height, bpp);
       
   240 	}
       
   241 
   237 	return QZ_CreateWindowQuickdrawSubdriver(width, height, bpp);
   242 	return QZ_CreateWindowQuickdrawSubdriver(width, height, bpp);
   238 }
   243 }
   239 
   244 
   240 
   245 
   241 static CocoaSubdriver *QZ_CreateSubdriver(int width, int height, int bpp, bool fullscreen, bool fallback)
   246 static CocoaSubdriver *QZ_CreateSubdriver(int width, int height, int bpp, bool fullscreen, bool fallback)