Index:
[thread]
[date]
[subject]
[author]
From: Christian Reiniger <warewolf@mayn.de>
To : ggi-develop@eskimo.com
Date: Mon, 19 Apr 1999 14:35:12 +0200
Re: GGI usage question
Marcus Sundberg 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)
>
>Pixelsize has nothing to do with depth.
Ok, sorry. But is it guaranteed to be a multiple of 8? Sorry for this
nitpicking, but that really looks like a candidate for later debugging
headaches ;)
Christian
--
Drive A: not responding...Formatting C: instead
Index:
[thread]
[date]
[subject]
[author]