[vox-tech] xlib/gdk questions

Peter Jay Salzman vox-tech@lists.lugod.org
Mon, 3 Jun 2002 13:24:31 -0700


hi mark,

begin Mark K. Kim <markslist@cbreak.org> 
> On Mon, 3 Jun 2002, Peter Jay Salzman wrote:
> 
> > 1: colormaps
> > ============
> > when an xlib book talks about a colormap, is it talking about something
> > which is global in scope?  something that's shared by all Windows?  is
> > it determined by the graphics card?
> >
> > or something which exists for each Window on a display?
> 
> An application can use a global colormap (which limits its colors) or an
> application can make its own global colormap.  In 8-bit mode, that means
> whenever the app gains focus, all other windows are gonna look weird,
> and when the app loses focus it'll look weird.
 
i've seen this happen before -- but i'm still not sure why it happens.
can you explain just a little bit more why this happens?

(big snip of stuff i understood)
 
> > btw, what exactly is 32bpp?  how can any true-color color map have a
> > depth that's not divisible by 3?  doesn't each color goes from 0 to FF?
> > what are the extra bits used for?
> 
> 32bpp = 8 bit red, 8 bit green, 8 bit blue, 8 bit alpha.

*surprise*  ok, i understand!  didn't know this.

> Don't know.
> 
> -Mark "sometimes-it's-okay-to-say-I-don't-know" Kim
 
:-)

pete