nanogui@linuxhacker.org
nanogui@linuxhacker.org
Subject: Re: Pixmaps
From: Ben Pfaff
Date: 20 May 1999 16:05:04 -0400
Greg Haerr <greg@censoft.com> writes:
> > IMAGEBITS bits[];
> > // image data here, optionally followed by color data
> >
> > Make it a pointer, not an array. Otherwise, how can you make a bitmap
> > that's part of the screen?
>
> Again, that won't work for bpp < 8. Fsck fsck fsck.
Sure it will. The imagebits are then just piled in right next to each other,
as they say "imagebits are imagebits"... ;-)
Suppose you have a 1-bit depth bitmap. With a byte-granular quantity
(i.e., line_len, etc.), how can you specify a non-byte-aligned
subbitmap? You can't. So if you want to support subbitmaps you have
to use pixel offsets, not byte offsets, which isn't as simple.
--
"To the engineer, the world is a toy box full of sub-optimized and
feature-poor toys." --Scott Adams
nanogui@linuxhacker.org