Re: XForms: problem with visual depth.

From: Steve Lamont (spl@szechuan.ucsd.edu)
Date: Fri Jan 28 2000 - 09:13:37 EST

  • Next message: Matthew J. Sheats: "XForms: XForms 0.89, Mesa 3.0, Multiple GL Canvases?"

    # To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

    > I trie to change the visual depth for my application, unsuccesfully :
    >
    > I want an "8 bit depth" visual and i still get a "24 bit depth" visual
    > (this append on a sun Ultra-sparc 10)
    >
    > this is a part of the source code i use...
    >
    > ------------------------
    >
    > FL_IOPT fl_cntl;
    >
    > fl_cntl.depth=8;
    > fl_cntl.privateColormap=TRUE;
    > fl_set_defaults(FL_PDDepth|FL_PDPrivateMap,&fl_cntl);
    >
    > _dpy=fl_initialize(&argc, argv, "Gaia", 0,0);
    >
    > ----------------------------------------
    >
    > is there something wrong with it ?

    I assume you want a PseudoColor Visual. What I do is

        FL_IOPT forms_options;

        forms_options.depth = 8;
        forms_options.vclass = PseudoColor;
        fl_set_defaults( FL_PDVisual |
                         FL_PDDepth,
                         &forms_options );

    and that works for me on -- coincidentally on an Ultra 60.

                                                            spl
    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Fri Jan 28 2000 - 09:14:22 EST