XForms: Wrong colors on Solaris

William Schmitt (wschmitt@pacerinfotec.com)
Wed, 14 Jan 1998 14:38:47 -0500

To subscribers of the xforms list from William Schmitt <wschmitt@pacerinfotec.com> :

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

In my app, from the fl_state it appears on my Linux machine the Visual
class is
TrueColor with a colormap of 33 and a depth of 15. On the Sun, the
visual class
is PseudoColor with the same colormap and a depth of 8. This, I assume,
is reading
the setup of the X server for my video card/monitor combo.

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

Most of my drawing is with Xlib functions. I set the foreground and
background for the
GC using FL_COLORs and then draw lines/text or copy a pixmap. I'm also
using
a GXxor drawing mode. XForms objects do not change color.
There is no color flashing.

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

I can run the app via rlogin to the Sun and display on the Linux box,
but not vice versa,
due to unrelated admin problems. When I do this, the results are the
same as running on the
Linux.

I can change the X settings on the Linux machine to visual PseudoColor
and depth 8 to match
Sun, but the Sun is my target machine and I don't know how to change its
X settings.
I don't understand why an FL_COLOR displays differently on each machine
no matter
what the Visual class is. I.E. both pseudocolor and truecolor should
display a FL_RED
as red, shouldn't they?

Bill S.

_________________________________________________
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/