On Mon, 26 Nov 2001, Ba la wrote:

> Hi All, 
>        I am triying to write a Hello world like
> program in GUI mode in RedHat Linux using Xlib library
> functions, but I am getting struck with
> XAllocColorCells() function call, even I tried one
> example available from Kenton Lee Technical X Window
> System programming site also that also getting filed
> in that same function call, what may be the reason??

   XAllocColorCells only works on read/write colormaps.
TrueColor maps are not read/write.  You most likely
want to be using XAllocColor instead.  The example
you are using most likely dates back to the day when
all displays were 8 bit PseudoColor.


                        Mark.


_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to