From 1142604adab2af3dd74b30a1fc16b49c56c2fdb0 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 30 May 2025 01:34:22 +0800 Subject: [PATCH 9/9] Minor fixes for 10.6 ppc --- hw/xquartz/quartzRandR.c | 3 ++- hw/xquartz/xpr/xprScreen.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/xquartz/quartzRandR.c b/hw/xquartz/quartzRandR.c index cb470fa8e..b65a8d70c 100644 --- a/hw/xquartz/quartzRandR.c +++ b/hw/xquartz/quartzRandR.c @@ -66,7 +66,8 @@ static Bool ignore_next_fake_mode_update = FALSE; typedef int (*QuartzModeCallback) (ScreenPtr, QuartzModeInfoPtr, void *); -#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 +/* TODO: verify if still needed for 10.6.8 ppc */ +#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 || defined(__ppc__) static long getDictLong(CFDictionaryRef dictRef, CFStringRef key) diff --git a/hw/xquartz/xpr/xprScreen.c b/hw/xquartz/xpr/xprScreen.c index 1dc23211c..7adbd112a 100644 --- a/hw/xquartz/xpr/xprScreen.c +++ b/hw/xquartz/xpr/xprScreen.c @@ -333,7 +333,8 @@ xprAddScreen(int index, ScreenPtr pScreen) DEBUG_LOG("index=%d depth=%d\n", index, depth); if (depth == -1) { -#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 +/* TODO: verify if still needed for 10.6.8 ppc */ +#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 || defined(__ppc__) depth = CGDisplaySamplesPerPixel(kCGDirectMainDisplay) * CGDisplayBitsPerSample(kCGDirectMainDisplay); #else -- 2.24.3 (Apple Git-128)