From 1962af7ee3bdf54cfa674187dea67b9ad36cd5a1 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 9 Dec 2008 23:48:18 -0800 Subject: XQuartz: Make debugging output for invalid depths a bit more detailed (cherry picked from commit 609fb166b7062c76f0561df12ffe893811f6ac8f) --- hw/xquartz/xpr/xprScreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xquartz/xpr/xprScreen.c b/hw/xquartz/xpr/xprScreen.c index 18406b89c..b813727f1 100644 --- a/hw/xquartz/xpr/xprScreen.c +++ b/hw/xquartz/xpr/xprScreen.c @@ -279,7 +279,7 @@ xprAddScreen(int index, ScreenPtr pScreen) switch(depth) { case -8: // broken - FatalError("Unsupported color depth %d\n", darwinDesiredDepth); + FatalError("Unsupported color depth %d %d\n", darwinDesiredDepth, depth); dfb->visuals = (1 << StaticGray) | (1 << GrayScale); dfb->preferredCVC = GrayScale; dfb->depth = 8; @@ -320,7 +320,7 @@ xprAddScreen(int index, ScreenPtr pScreen) dfb->blueMask = 0x000000ff; break; default: - FatalError("Unsupported color depth %d\n", darwinDesiredDepth); + FatalError("Unsupported color depth %d %d\n", darwinDesiredDepth, depth); } if (noPseudoramiXExtension) -- cgit v1.2.3