XQuartz: Make debugging output for invalid depths a bit more detailed

(cherry picked from commit 609fb166b7)
This commit is contained in:
Jeremy Huddleston 2008-12-09 23:48:18 -08:00
parent 76351d2faf
commit 23156a21d8

View File

@ -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)