Re: Visuals on Xvnc


Tristan Richardson ()
Thu, 05 Mar 1998 13:37:31 +0000


> cc likely refers to the color cube..
>
> > On Wed, 4 Mar 1998, Tristan Richardson wrote:
> >
> > > If you want an 8-bit Pseudocolor visual, try
> > >
> > > vncserver -depth 8 -cc 3
> >
> > Thanks, it works fine!
> >
> > Just I'd like to know - how is it possible to figure out the magic "3"
> > argument? Would somebody point me into X documentation or something?

I believe "cc" stands for "color class" (though "visual class" would have been
more consistent with X terminology). The value 3 comes from the X protocol
definition - the header file X11/X.h has:

#define StaticGray 0
#define GrayScale 1
#define StaticColor 2
#define PseudoColor 3
#define TrueColor 4
#define DirectColor 5

Cheers

Tristan

+--------------------------------------------------------------------+
| Tristan Richardson Email: |
| ORL Tel: +44 1223 343000 |
| 24a Trumpington Street Fax: +44 1223 313542 |
| Cambridge, CB2 1QA, UK WWW: |
+--------------------------------------------------------------------+
| ORL - The Olivetti & Oracle Research Laboratory |
+--------------------------------------------------------------------+



This archive was generated by on Wed Feb 03 1999 - 15:32:46 GMT