Thanks Mark,
It is working with 8bpp, suppose I want to
use XAllocColorCells and XAllocColor, how it is
possible, because XAllocColor is getting fail in 8bpp,
I think we need to use eith one at a time, is there
any work arround for this????
-Bala-
--- Mark Vojkovich <[EMAIL PROTECTED]> wrote:
> 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.
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert