Article View: comp.windows.x
Article #23701Re: Silicon Graphics X11R4 server and default ColorMap
From: Mike Yang
Date: Wed, 12 Jun 1991 19:02
Date: Wed, 12 Jun 1991 19:02
28 lines
1841 bytes
1841 bytes
In article <598@censun1.UUCP>, tl@censun1.UUCP (SSUID Tin Li) writes:
|> With the X11R4 server from Silicon Graphics, we are able to allocate
|> only sixteen colors using the default Colormap. Does anyone have
|> similar problem? Is it a known problem? Is there a easy work
|> around?
This is not a problem, but a "feature."
Since GL and X programs must share the same hardware colormap, and GL
programs tend to expect that the colormap is populated by certain
colors, the default behavior of the X server is to preallocate all of
the colormap cells except for sixteen of them. Therefore, GL programs
tend to display in the correct colors while X programs have only
sixteen to play with.
If you run predominately X programs and/or you want your X programs to
display in their true colors at the expense of GL programs, you can
start your X server with the -gl switch which will cause it to only
preallocate sixteen colors.
To make this the default, create a ".xSGINeWS.cmd" file in your home
directory and put this in it:
/usr/bin/X11/Xsgi -bs -gl -su
-----------------------------------------------------------------------
Mike Yang Silicon Graphics, Inc.
mikey@sgi.com 415/335-1786
Technical Details
Message-ID:
<1991Jun12.190204.4598@twilight.wpd.sgi.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!sgi!shinobu!odin!sgihub!zola!twilight!eukanuba.wpd.sgi.com!mikeyReferences:
<598@censun1.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!sgi!shinobu!odin!sgihub!zola!twilight!eukanuba.wpd.sgi.com!mikey From: mikey@eukanuba.wpd.sgi.com (Mike Yang) Newsgroups: comp.windows.x Subject: Re: Silicon Graphics X11R4 server and default ColorMap Keywords: Silicon Graphics, Colormap Message-ID: <1991Jun12.190204.4598@twilight.wpd.sgi.com> Date: 12 Jun 91 19:02:04 GMT References: <598@censun1.UUCP> Sender: news@twilight.wpd.sgi.com ( CNews Account ) Reply-To: mikey@sgi.com Organization: Silicon Graphics, Inc. Lines: 28