* Aaron Sloman See text for reply address wrote:
> The Sun has an 8 bit colour display whereas the PC uses 24 bits (I
> think). But I don't think that can be the cause of the problem.
> (X uses only 8 bits anyway??)
X should be able to use as many bits as the screen has. I suspect the
problem is a pseudocolour/truecolour. The default visual on the Sun
(if it's old and has only 8 bit colour) will be pseudocolour, which
will work. The default visual on the PC may well be truecolour, and
I'm not at all sure that XAllocColorCells makes any sense for a
truecolour visual (as there is no colourmap).
You can find out what the default visual is by looking at xdpyinfo for
the screen.
You can often set what the default visual is when the server starts.
You should also be able to alter the program to make sure it gets a
visual it can handle.
The whole colour business under X is mysterious and difficult (I have
a screen with some odd visuals and things like overlay planes, and
many programs just break on it).
I'm afraid I don't really know enough C-level X stuff to be able to
help more.
--tim
|