Re: XForms: ColormapFull

Giorgos Petasis (petasis@iit.nrcps.ariadne-t.gr)
Wed, 11 Mar 1998 08:12:45 +0200 (EET)

# To subscribers of the xforms list from Giorgos Petasis <petasis@iit.nrcps.ariadne-t.gr> :

> today I came across the following problem :
> In MapColor [flcolor.c 807] ColormapFull. Using substitutions
>
> My application has a colour editor that uses fl_mapcolor() to display the
> selected colour on the form. When this 'error' occurs the colour displayed
> on the form is random. It used to work fine - at this point I have nothing
> more than a suspicion: I added recently some pixmap buttons. Are these
> buttons the culprits ? Is there anything one can do ?
> (The colour editor transfers upon demand the rgb values to a gl window
> to set the background colour. This still works perfectly. I guess these
> are two different things. )
>
"ColormapFull. Using substitutions" means that you have run out of available
colors from your xserver. Probably, you are using a server having 256 colors...
(you can check that by giving "xwininfo", clicking on the root window and
look for depth. It should be 8...) Probably the reason is the pixmaps that
you added in your pixmaps buttons. Be carefull, xforms predifined colors
(arround 30...) + number of colors allocated with fl_mapcolor + number of
different colors in all pixmaps < 256. If this sum is more than 256, then
you will always have problems, even with private colormap.
(I hope it helps :) )...
gpp.
_________________________________________________
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://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/