[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Single Page

Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 4.! How do I use a different visual than the default?
Next Document: 6. Why do only Shell widgets have a Visual?


5. Which visual should an application use?


----------------------------------------------------------------------

This is a point that can be argued about but one opinion is there is
no way for an application to know the appropriate visual -- it has to
be specified by the user.  If you disagree with this then your
application probably falls into the category of always using the
default visual or it is hardware specific and expects some particular
visual such as 24bit TrueColor with an OverlayPlane extension (or some
such).

Why?  No application runs in isolation.  Depending on the way a server
allocates resources I may not always want your application to run in
TrueColor mode if it is going to mess up my other applications.  I may
be very upset if it chooses to run in GreyScale instead of PsuedoColor
or just monochrome.

As an example, on a low end color Sun server there are many different
possible visuals: monochrome, 256 entry colormap, static gray, static
color, and a 3/3/2 TrueColor.  The SGI Iris's offer all the above 
plus 12 bit TrueColor, 24 bit TrueColor, an Overlay Plane.



Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 4.! How do I use a different visual than the default?
Next Document: 6. Why do only Shell widgets have a Visual?

Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
ware@cis.ohio-state.edu

Last Update July 25 2008 @ 00:10 AM

© 2008 FAQS.ORG. All rights reserved.