XForms: visual depth

From: Yann Guichoux (guichoux@shom.fr)
Date: Wed Apr 05 2000 - 03:11:10 EDT

  • Next message: Steve Lamont: "Re: XForms: visual depth"

    # To subscribers of the xforms list from Yann Guichoux <guichoux@shom.fr> :

     I've got some problems with visual depth...
     I'm manipulating a lot of pixmap (quite big but not hundreds ;->) in my
    application and i would like
    to force the visual to be an "8 bit depth visual"
     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; //
     The problem appears on an ultra10 workstation...I can't
    force the visual to be
    "8 bits depth "
    I listed the available visual depths on this machine and i
    only get a 24 bits
     here is the code i wrote to list the available depths...
            XVisualInfo vTemplate;
            XVisualInfo *visualList;
            int visualMatched;

            _dpy=fl_initialize(&argc, argv, "Gaia", 0,0);


            for(int i=0; i<visualMatched; i++)
                    printf("depth %d\n",visualList[i].depth);
    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...)

    thanks for any help....
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil 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 - 03:24:16 EDT