Hi Everyone,
Is there a way to get X11 on Mac (the version that gets installed with Tiger, v1.1 I believe) to support a DirectColor visual? I've ported a program that is capable of using both 8-bit psuedocolor and 24-bit DirectColor. The 8-bit psuedocolor works fine (after switching preferences and restarting X11), but the DirectColor version won't load. '
The initial culprit appears to be XMatchVisualInfo:
XMatchVisualInfo(idispl, XDefaultScreen(idispl), DefaultDepthOfScreen(iscreen), DirectColor, &visual_data);
Naively changing DirectColor to TrueColor works, but then subsequent calls to XQueryColors fail. The two simplest things would be either to find a way to support DirectColor OR find the proper way to start a second x-server with 8-bit support. Currently using:
Xquartz :1 -depth 8 -displayID 1 &
But then X11 windows using display 1 don't display their contents correctly. Of course, I could be setting that up wrong, so if someone could point me to a better (correct) method, I'd appreciate that.
Thanks in advance,
Dave
|