# To subscribers of the xforms list from firstname.lastname@example.org (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.
To unsubscribe, send the message "unsubscribe" to
email@example.com 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 26 2000 - 09:23:28 EDT