X Apps using color tables running on 32 bit color

X Apps using color tables running on 32 bit color

Post by Larry Richardso » Wed, 08 Nov 2000 04:00:00



I need info on how Linux (maybe this is a generic X win question) allows
apps to run that use XAllocColors and color tables.  The problem that I
have is this X app (motif really, hosted on another platform, using
Linux as the display) is requesting some colors, but refuses to run when
the display is my Linux box.  The XAllocColors call fails to allocate
the needed number of colors.  At first, I thought that maybe it has a
problem because my Display had a color depth of 32 bits, and was
confusing the app.  Changing the color depth in XF86Config to 8 bits
didn't work either.  

Anyone know of a good web resouce that discusses X color problems?

Thanks,
Larry Richardson

 
 
 

X Apps using color tables running on 32 bit color

Post by ken.. » Wed, 08 Nov 2000 04:00:00




Quote:>I need info on how Linux (maybe this is a generic X win question) allows
>apps to run that use XAllocColors and color tables.  The problem that I
>have is this X app (motif really, hosted on another platform, using
>Linux as the display) is requesting some colors, but refuses to run when
>the display is my Linux box.  The XAllocColors call fails to allocate
>the needed number of colors.  At first, I thought that maybe it has a
>problem because my Display had a color depth of 32 bits, and was
>confusing the app.  Changing the color depth in XF86Config to 8 bits
>didn't work either.  

>Anyone know of a good web resouce that discusses X color problems?

Any Xlib manual should have a chapter on the X color model.
You need to figure out what visual type and depth your application needs
and make sure your X server supports that visual type and depth.
Most UNIX workstations support a variety of visual types/depths simultaneously.
PC hardware sometimes only supports one at a time, though.
--
Ken Lee, http://www.rahul.net/kenton/

 
 
 

1. 64 Bit Solaris 6 Running 32 Bit Apps

I have a Solaris 8 server configured to run at 64 bits....... I also have
some in-house packages that did run at Solaris 2.6 (32 bits)....... I have
successfully used "pkgadd" to install the 32 bit Apps onto the 64 bit O/S,
(and they seem to work OK).

Should I watch out for any pit falls? Or should I recompile the source of
the Apps. to run at 64 bit Solaris 8.

Performance is not a great issue, however I recognise that a "all singing,
all dancing" 64 bit O/S and App could provide enhancements.

Thanks for any help/suggestions you can offer.

2. gateway to ppp

3. Running a 32 bit app on 64 bit h/w

4. Help: How enable co-processor on SS10 with Solaris7

5. not enough to colors to run 8 bit app on PGX32

6. Can I use another distro's kernel?

7. Setting X to display in 16, 24, and 32 bit color mode.

8. Still can't print

9. TNT and 32 bit color

10. 24/32 bits color w/ Stealth 3D

11. XDM - 32 Bit color

12. How to boot into X with 16/24/32 bit colour?

13. GeForce DDR in 32-bit color?