Index: [thread] [date] [subject] [author]
  From: Christian Reiniger <warewolf@mayn.de>
  To  : ggi-develop@eskimo.com
  Date: Sun, 18 Apr 1999 13:36:01 +0200

Re: GGI usage question

Evan Martin wrote:

>const ggi_pixelformat *pf = ggiGetPixelFormat(graphics->vis);
>int pixelbytesize = pf->size/8;

pf->size is the pixelsize in bits, right? Then this line won't work for
15bpp and other "non-even" depths (normal integer division IIRC rounds down
- you need sonething rounding up)


	Christian

--

Drive A: not responding...Formatting C: instead

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