Index: [thread] [date] [subject] [author]
  From: Marcus Sundberg <e94_msu@elixir.e.kth.se>
  To  : ggi-develop@eskimo.com
  Date: Fri, 21 Aug 1998 11:44:47 +0200

Re: requesting bits-per-colour in GGI?

> teunis writes:
> 
> >  it usetabe that you could get this from
> >  	ggiGetInfo(ggi_vis)->fb.bpc
> >  
> >  is it this?
> >  	ggiGetPixelFormat(ggi_vis)->size
>   
> ggiGetPixelFormat(vis)->depth is the color depth (e.g. 15 for r5g5b5).
> ggiGetPixelFormat(vis)->size  is the pixel size  (e.g. 16 for r5g5b5).

Also this information is a part of the ggi_graphtype which is a member
of the ggi_mode struct that describes a mode.
GT_SIZE(mode.graphtype) gives you the size and GT_DEPTH(graphtype)
gives you the depth

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan
 Royal Institute of Technology |       Phone: +46 707 295404
       Stockholm, Sweden       |      E-Mail: e94_msu@e.kth.se


Index: [thread] [date] [subject] [author]