mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 06:46:43 +00:00
(svn r11599) -Change: [OSX] 10.4 will now use quickdraw for window mode instead of quartz
The reason is that quickdraw is way faster (try fast forward) 10.5 will still use quartz as it can't handle quickdraw.
This commit is contained in:
parent
625a4f8e9a
commit
2256d9d378
@ -233,7 +233,8 @@ static CocoaSubdriver *QZ_CreateWindowSubdriver(int width, int height, int bpp)
|
|||||||
CocoaSubdriver *ret;
|
CocoaSubdriver *ret;
|
||||||
|
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||||
if (MacOSVersionIsAtLeast(10, 4, 0)) {
|
/* The reason for the version mismatch is due to the fact that the 10.4 binary needs to work on 10.5 as well. */
|
||||||
|
if (MacOSVersionIsAtLeast(10, 5, 0)) {
|
||||||
ret = QZ_CreateWindowQuartzSubdriver(width, height, bpp);
|
ret = QZ_CreateWindowQuartzSubdriver(width, height, bpp);
|
||||||
if (ret != NULL) return ret;
|
if (ret != NULL) return ret;
|
||||||
}
|
}
|
||||||
|
@ -782,8 +782,8 @@ CocoaSubdriver *QZ_CreateWindowQuartzSubdriver(int width, int height, int bpp)
|
|||||||
{
|
{
|
||||||
WindowQuartzSubdriver *ret;
|
WindowQuartzSubdriver *ret;
|
||||||
|
|
||||||
if (!MacOSVersionIsAtLeast(10, 4, 0)) {
|
if (!MacOSVersionIsAtLeast(10, 5, 0)) {
|
||||||
DEBUG(driver, 0, "The cocoa quartz subdriver requires Mac OS X 10.4 or later.");
|
DEBUG(driver, 0, "The cocoa quartz subdriver requires Mac OS X 10.5 or later.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -798,8 +798,8 @@ CocoaSubdriver *QZ_CreateWindowQuickdrawSubdriver(int width, int height, int bpp
|
|||||||
{
|
{
|
||||||
WindowQuickdrawSubdriver *ret;
|
WindowQuickdrawSubdriver *ret;
|
||||||
|
|
||||||
if (MacOSVersionIsAtLeast(10, 4, 0)) {
|
if (MacOSVersionIsAtLeast(10, 5, 0)) {
|
||||||
DEBUG(driver, 0, "The cocoa quickdraw subdriver is not recommended for Mac OS X 10.4 or later.");
|
DEBUG(driver, 0, "The cocoa quickdraw subdriver is not recommended for Mac OS X 10.5 or later.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bpp != 8 && bpp != 32) {
|
if (bpp != 8 && bpp != 32) {
|
||||||
|
Loading…
Reference in New Issue
Block a user