On Thu, 3 Apr 2003, Peter Gervais wrote:

> I have an application which requires it uses it own colormap.
> 
> I'm using the 8+24 mode in the mga driver where the colormap has to be 
> installed in the 8 Pseudo color
> plane. This application works well unchanged in HP-UX and Solaris 8.
> 
> When i load the colormap , it affects all other applications on that 
> screen. The xwininfo result indicates the color map
> has been successfully installed.

This is true for most PC hardware in any 8-bit mode*
Typically PC graphics hardware only has one palette storing the colormap;
many HP and Sun systems have hardware with more than one palette,
which solves the problem.

In your particular case the 8bit visuals use the palette, but the
24 bit visuals ignore it, so any applications which use 24bit visuals
should be unaffected by your unsociable application.
Unfortunately the default visual in 8+24 is 8bit, and many applications
just use the default, so most applications are affected.

You may be able to get around this by starting X with something like:
        startx -- -cc 4
which will make the 24bit visual the default, 
although I believe that this stops many 8bit apps. from working;
if they are too ignorant to support a 24buit visual they may be
unable to find the 8bit pseudocolor visual when it is not the default :-(

*The problem also affects any dynamic visual -
GrayScale, PseudoColor and DirectColor, and any other visuals 
implemented the same way; eg TrueColor when gamma-correction is 
available.

-- 
Dr. Andrew C. Aitchison         Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED]       http://www.dpmms.cam.ac.uk/~werdna

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to