LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   PseudoColor X - Initial entries in the shared colormap (https://www.linuxquestions.org/questions/linux-general-1/pseudocolor-x-initial-entries-in-the-shared-colormap-4175453875/)

brizza 03-13-2013 03:23 AM

PseudoColor X - Initial entries in the shared colormap
 
If it makes a difference I am using CentOS 5.3 (32bit) in a vmware VM.

When using X in 8-bit PseudoColor mode, I am trying to find out where default colors are allocated to the system colormap.

When I start just X - by that I mean just the root window displayed without a display manager and without any application windows (not even so much as an Xterm), then the colormap still has 73 entries in it. Does anyone know how they get there? I was expecting black and white in there (there is the cursor to display, after all), but 73?


Andy B

jpollard 03-15-2013 06:58 PM

I think this is the default color table, with spare entries to allow applications to set specific colors for their own use. This allows much of the background to be in color, and not have the display flickering due to having to switch color tables as the mouse moves across various windows.


All times are GMT -5. The time now is 01:52 PM.