Index:
[thread]
[date]
[subject]
[author]
From: Marcus Sundberg <mackan@stacken.kth.se>
To : ggi-develop@eskimo.com
Date: Fri, 28 Aug 1998 11:01:04 +0200
Re: libggi doc changes
Andrew Apted wrote:
>
> Marcus writes:
>
> > Well that's what I meant. But as Get/Put buffers don't have a
> > fixed width they don't have a fixed stride either. Therefore
> > we call it "modulo" or something like that. It's meaning will be
> > that the horizontal buffer size must always be an integer multiple
> > of it.
>
> `modulo' sounds OK. Putting it in the ggiGetPixelFormat() structure
> would be best IMHO, so we don't need any extra API.
>
> Documentation:
> The `modulo' field specifies the padding requirements for horizontal
> lines in the buffer for ggiPutBox() and ggiPutHLine(). Padding can be
> performed as follows:
>
> for (; cur_len % pixfmt->modulo; cur_len++) *buf++ = 0;
>
> [assuming cur_len is the current length of the line (in bytes), and buf
> is a pointer to uint8].
I don't see why any target would bother what the contents of the
"offbuffer" area. So why confuse people with the = 0 part ?
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: mackan@stacken.kth.se
Index:
[thread]
[date]
[subject]
[author]