Subject: Re: X11 colormap on Sparc
To: None <beaker@freeshell.org>
From: Brett Lymn <blymn@baesystems.com.au>
List: port-sparc
Date: 03/08/2004 10:17:20
On Sun, Mar 07, 2004 at 03:16:10PM -0800, beaker@freeshell.org wrote:
>
> This isn't really a SParc-specific question but it's the Sparc port
> that is probably most affected.
>

No, it will happen on any machine with a limited colour space but due
to the march of technology it is most likely on older machines that
only support 256 colours.
 
> The problem: if I use xv to put a nice pic in the root window and
> then start up dillo (the web browser) the graphics in the web pages
> are all messed up, kind of like a thermal image. However, if I
> start dillo first and then display the xroot pic things tend to
> look OK. I've tried about every applicable xv command-line option
> but none seem to solve the problem.
> 

What dillo is doing is seeing that it cannot allocate enough colours
in the shared colour map and creating a private colour map.  The
colour map changes depending on the focus of the windows.  So, when
you are in dillo it maps the colours the way it likes, so the
background no longer has the expected colours so it looks funky.  The
reason it works ok the other way is that xv will select the closest
matching colour when it is generating the image, if you look closely
you will probably see some artifacts due to this.

>
> Still, I'd like to figure out how to
> force dillo to use the default(?) color map if possible.
>

You need to disable the use of a private colour map.  Mind you, this
may lead to dillo not having enough colours and everything will look
terrible.  Either live with your work around or try and reduce the
colour space used by your background image - that can take a bit of
tweaking to get a reasonable image quality.

-- 
Brett Lymn