Re: X11 error
Re: X11 error
- Subject: Re: X11 error
- From: Jeremy Huddleston <email@hidden>
- Date: Tue, 9 Dec 2008 14:16:52 -0800
You don't put it anywhere. That code already exists, and is where the
error is coming from.
The only thing I can really conclude from your output is that on your
system
CGDisplaySamplesPerPixel(kCGDirectMainDisplay) *
DisplayBitsPerSample(kCGDirectMainDisplay)
is not 8, 15, or 24 for some reason (unfortunately the error message
isn't helpful in narrowing that down, so I'll update it).
What is the depth of your display?
On Dec 9, 2008, at 13:07, Joaquim Pedro França Simão wrote:
Sorry, but where do I put this code?
If it is to compile X11, I do not have Xcode installed (and I am not
downloading)
2008/12/9 Jeremy Huddleston <email@hidden>
On Dec 8, 2008, at 15:41, Joaquim Pedro França Simão wrote:
Dec 8 21:40:07 notebook org.x.startx[185]: Unsupported color
depth -1
This is really weird... What is the depth of your display? It
should be
detected by:
if(depth == -1) {
depth = CGDisplaySamplesPerPixel(kCGDirectMainDisplay) *
CGDisplayBitsPerSample(kCGDirectMainDisplay);
//dfb->depth = CGDisplaySamplesPerPixel(kCGDirectMainDisplay) *
CGDisplayBitsPerSample(kCGDirectMainDisplay);
//dfb->bitsPerRGB =
CGDisplayBitsPerSample(kCGDirectMainDisplay);
//dfb->bitsPerPixel =
CGDisplayBitsPerPixel(kCGDirectMainDisplay);
}
switch(depth) {
case -8: // broken
FatalError("Unsupported color depth %d\n",
darwinDesiredDepth);
dfb->visuals = (1 << StaticGray) | (1 << GrayScale);
dfb->preferredCVC = GrayScale;
dfb->depth = 8;
dfb->bitsPerRGB = 8;
dfb->bitsPerPixel = 8;
dfb->redMask = 0;
dfb->greenMask = 0;
dfb->blueMask = 0;
break;
case 8: // broken
dfb->visuals = PseudoColorMask;
dfb->preferredCVC = PseudoColor;
dfb->depth = 8;
dfb->bitsPerRGB = 8;
dfb->bitsPerPixel = 8;
dfb->redMask = 0;
dfb->greenMask = 0;
dfb->blueMask = 0;
break;
case 15:
dfb->visuals = LARGE_VISUALS;
dfb->preferredCVC = TrueColor;
dfb->depth = 15;
dfb->bitsPerRGB = 5;
dfb->bitsPerPixel = 16;
dfb->redMask = 0x7c00;
dfb->greenMask = 0x03e0;
dfb->blueMask = 0x001f;
break;
case 24:
dfb->visuals = LARGE_VISUALS;
dfb->preferredCVC = TrueColor;
dfb->depth = 24;
dfb->bitsPerRGB = 8;
dfb->bitsPerPixel = 32;
dfb->redMask = 0x00ff0000;
dfb->greenMask = 0x0000ff00;
dfb->blueMask = 0x000000ff;
break;
default:
FatalError("Unsupported color depth %d\n",
darwinDesiredDepth);
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden
References: | |
| >X11 error (From: Joaquim Pedro Franca Simao <email@hidden>) |
| >Re: X11 error (From: "Joaquim Pedro França Simão" <email@hidden>) |
| >Re: X11 error (From: Jeremy Huddleston <email@hidden>) |
| >Re: X11 error (From: "Joaquim Pedro França Simão" <email@hidden>) |
| >Re: X11 error (From: Jeremy Huddleston <email@hidden>) |
| >Re: X11 error (From: "Joaquim Pedro França Simão" <email@hidden>) |