Re: XForms: Colormap & fl_image

From: Steve Lamont (spl@szechuan.ucsd.edu)
Date: Wed Apr 26 2000 - 09:19:44 EDT

  • Next message: Yann Guichoux: "Re: XForms: Colormap & fl_image"

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

    > My problem is that when i display an image within one of the windows i
    > created, and when i select another window of my application with the
    > mouse cursor, all the colors of the displayed image are changing..and i
    > don't know how to get the original colormap back .

    Do you mean that the colors in the displayed image change
    *permanently* -- even when you move the mouse back out of the image
    - or just that you get "Technicolor" flashing?

    If the problem is the latter, if you have a display that supports only
    one Colormap at a time and if you have multiple Windows, each with its
    own Colormap, it is inevitable that you're going to have this flashing
    phenomenon, since the server loads a new Colormap when the Window
    becomes active (indicated by an EnterNotify event).

    If possible, the best thing is for all Windows to use a shared
    Colormap, using some color approximation or dithering scheme to spread
    the error in as imperceptible a manner as possible.

    Even better -- if your display supports TrueColor mode, use that.

                                                            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 : Wed Apr 26 2000 - 09:23:28 EDT