XForms: re: visual depth

From: Yann Guichoux (guichoux@shom.fr)
Date: Fri Apr 07 2000 - 03:12:01 EDT

  • Next message: Matthew Whillock: "XForms: Button background color"

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

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

    >This must be called *before* fl_initialize(). Are you doing that?

    Yes...this is what i am doing...

    >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

    > xdpyinfo

    what i get :

    {}46: xdpyinfo

    name of display: :0.0
    version number: 11.0
    vendor string: Sun Microsystems, Inc.
    vendor release number: 3610
    maximum request size: 262140 bytes
    motion buffer size: 256
    bitmap unit, bit order, padding: 32, MSBFirst, 32
    image byte order: MSBFirst
    number of supported pixmap formats: 4
    supported pixmap formats:
        depth 1, bits_per_pixel 1, scanline_pad 32
        depth 8, bits_per_pixel 8, scanline_pad 32
        depth 16, bits_per_pixel 16, scanline_pad 32
        depth 24, bits_per_pixel 32, scanline_pad 32
    keycode range: minimum 8, maximum 132
    focus: window 0x4c00009, revert to PointerRoot
    number of extensions: 22
    default screen number: 0
    number of screens: 1

    screen #0:
      dimensions: 1152x900 pixels (325x254 millimeters)
      resolution: 90x90 dots per inch
      depths (2): 1, 24------------------------------------------> :-<<
    (however, there are 4 pixmap formats available ; what does it
    mean ?)
      root window id: 0x25
      depth of root window: 24 planes
      number of colormaps: minimum 1, maximum 1
      default colormap: 0x21
      default number of colormap cells: 256
      preallocated pixels: black 0, white 16777215
      options: backing-store YES, save-unders YES
      largest cursor: unlimited
      current input event mask: 0x78003f
        KeyPressMask KeyReleaseMask
        ButtonReleaseMask EnterWindowMask
        SubstructureNotifyMask SubstructureRedirectMask
      number of visuals: 1
      default visual id: 0x22
        visual id: 0x22
        class: TrueColor
        depth: 24 planes
        available colormap entries: 256 per subfield
        red, green, blue masks: 0xff0000, 0xff00, 0xff
        significant bits in color specification: 8 bits

    >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.

    Yes, i already tried this.

    here is the answer i got...

    {}53: gaia -visual PseudoColor -depth 8
    In ProgamVisual [flvisual.c 280] Bogus request: PseudoColor with depth=8

    I kicked the workstation...but its answer is still the same ;-> ...too
    bad ?

    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 : Fri Apr 07 2000 - 03:20:10 EDT