Index: [thread] [date] [subject] [author]
  From: Olivier Galibert <galibert@pobox.com>
  To  : ggi-develop@eskimo.com
  Date: Wed, 26 Aug 1998 18:15:25 +0200

Re: libggi doc changes

On Wed, Aug 26, 1998 at 11:58:46AM -0400, Steve Cheng wrote:
> More I've missed.
> 
> # The buffer size needs to be at least w*h*sizeof(ggi_pixel)
> 
> (referring to get/put buffers.)
> 
> Do we say "w * h * (ggiGetPixelFormat()->size+7) / 8" instead?
> Sounds complicated... :)
> 
> Or w*h*sizeof(ggi_pixel) is "good enough" ?

This  may be wrong.   Compilers pad.    In  particular you can't  have
sizeof(ggi_pixel)=3 easily (you'd need a char [3]).

It may  sound complicated, but at least  it's right and the meaning is
obvious.

  OG.

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