Re: XForms: Wrong colors on Solaris

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 13 Jan 98 07:01:28 PST

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

> My app that displays some line drawings and pixmaps compiles and runs
> fine on my Linux machine but when compiled on a Sun Sparc with Solaris
> 2.5.1, the colors of the lines/pixmaps are not correct, i.e. FL_GREEN
> displays as red and FL_RED displays green, etc. Is this a colormap
> problem? Any ideas?

Yes, it does sound like a Colormap problem of some sort, though given
the paucity of information, it's hard to say more.

What Visual are you getting on each machine? Is one, perchance,
TrueColor and the other PseudoColor? If you don't set up the Colormap
properly for each Visual, odd things can happen.

How are you drawing? Are you drawing in a Canvas with Xlib or are you
using XForms functions? Do XForms objects change color? Do you get
color flashing or does the display go "Technicolor" when you move the
mouse into the form?

Just out of curiousity, can you run the application from your Linux
machine as client to the Sun server? If so, what happens?

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/