# To subscribers of the xforms list from email@example.com (Steve Lamont) :
> this is the code i wrote to force the visual depth.
> fl_cntl.depth=8; // depth = 8 bits
> fl_cntl.privateColormap=1; // private corlormap
> fl_cntl.vclass=PseudoColor; //
This must be called *before* fl_initialize(). Are you doing that?
While logged into the console of the machine (not remotely, since this
will give you the capabilities of the *server*, which is not what you
want) in question, type
> Is there another way to force the visual to be "8 bits
> depth" ? Or does it come from the hardware ? (I was thinking (yep...i'm
> able to think...;->) that a screen which can display 24 bits depth
> pixmap...was able to display 8 bits depth pixmap...)
This is generally the case. I find it hard to believe that there
isn't an 8 bit Visual available on the server.
If you haven't tried already, you might try starting your app with the
XForms flags `-visual' and `-depth':
your_app -visual PseudoColor -depth 8 ... other args ...
and see what happens. This should do the Right Thing.
To unsubscribe, send the message "unsubscribe" to
firstname.lastname@example.org or see
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Wed Apr 05 2000 - 09:53:49 EDT