Re: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help) SOLVED [message #29261] |
Fri, 08 February 2002 03:00 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Reimar Bauer (r.bauer@fz-juelich.de) writes:
> My result is that it is forbidden to ask for the visual_depth!!!
>
> If I exclude this line and set myself depth to 24 all is good, but how
> will I determine now between 16bit and 24 bit ?
This is not surprising. If you ask the display
what it's visual depth is, it obviously has to
establish a connection to a visual class to find out.
If you do this *before* you have selected a visual
class, then it gets the default visual class (I.e,
Direct Color) and all subsequent attempts to define
a different visual class fail, since a visual class
has already been established.
The procedure is simple. Establish a visual class
FIRST. Then open windows, inquire what its properties
are, etc. AFTER.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|