* Re: 8-Bit Display on PowerStorm 4D50T?
1998-03-23 5:00 8-Bit Display on PowerStorm 4D50T? Wong Yeow Whye
@ 1998-03-23 5:00 ` Monty Brandenberg
0 siblings, 0 replies; 2+ messages in thread
From: Monty Brandenberg @ 1998-03-23 5:00 UTC (permalink / raw)
To: Wong Yeow Whye
Wong Yeow Whye wrote:
>
> Recently we acquired a number of 600au workstations with the PowerStorm
> 4D50T display cards. The problem we now face is that this card is set to
> a 24-bit display by default but we have some applications that require an
> 8-bit display. Does anyone know how to set the card to diplay in 8-bit mode?
The 4D50T (and 40T, 51T, and 60T) use an IBM 640 ramdac and the DDX layer
for the X server supports two or three (can't remember which) simultaneously-
loaded 8bpp pseudocolor colormaps even while using a 24bpp truecolor visual.
The program must simply ask politely for the correct visual type, create a
suitable colormap, and then create it's windows with correct attributes. Be
careful that you don't accidentally grab the overlay visual.
If the program is relying on the default visual being 8bpp pseudocolor this
is somewhat poor X programming practice but can be dealt with. I'm working
from memory here so review the man pages and release notes (and running
'strings' on /usr/shlib/X11/lib_dec_e3sc.so and /usr/shlib/X11/lib_dec_ws.so is
instructional). You can add options to the server config file
/usr/var/X11/Xserver.conf *before* any '-I' option. These options are:
-depth<screen> <depth>
-forceDepth<screen> <depth>
-vclass<screen> <class>
where:
<screen> is the screen index (first is 0 and can be omitted)
<depth> is visual depth in bpp (e.g. 8, 4, 12, 24)
<class> is one of: PseudoColor, TrueColor, PseudoGray, etc.
Typically, you need only one option. The other attributes are usually,
but not always, constrained by it.
m
--
Monty Brandenberg, Software Consultant MCB, Inc.
mcbinc@ne.mediaone.net.MAPS.SPAM P.O. Box 426188
mcbinc@world.std.com.MAPS.SPAM Cambridge, MA 02142
617.864.6907
^ permalink raw reply [flat|nested] 2+ messages in thread