XAllocColorCells has failed

Russell Shaw rjshaw at netspace.net.au
Tue Sep 6 07:43:13 PDT 2005


Peter J. Bismuti wrote:
> On Saturday 03 September 2005 02:49 pm, Felix Schulte wrote:
> 
> It seems that linux does not have a PseudoColor visual of any kind.  This is 
> news to me.
> 
> The SGI's default visual is PseudoColor, so that app was written assuming the 
> use of colormaps, but the Linux version chokes on XAllocColorCells because it 
> is in 24bit TrueColor mode.

With my ati radeon 9200se, xdpyinfo shows 24-plane direct colour. Directcolor
has a pixel table for each r/g/b primary, whereas pseudocolor has one table
for the whole rgb number. Therefore, directcolor can replace pseudocolor (add
some code for this case).

>>On 9/3/05, Peter J. Bismuti <peter.j.bismuti at boeing.com> wrote:
>>
>>>A graphics application is being ported to Linux (Redhat E4) and it is
>>>giving the following error message:
>>>
>>>"XAllocColorCells has failed"
>>>
>>>It is only requesting 16 colors.   Any idea what is causing this?  Will a
>>>TrueColor visual need to be used?
>>
>>A little bit more information may be useful - which application, which
>>toolkit, which visual does it use currently?



More information about the xorg mailing list