Re: Re: [PATCH]: image.depth fix to accomodate monochrome cards
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2003-01-10 19:44:43
On Fri, 10 Jan 2003, James Simmons wrote:
quoted
I think we still have several corner cases, such as TRUECOLOR with bpp <= 8, I'm not sure if that works.The matorx millenium has such a mode. So such things do exist.quoted
- if (image->depth == 1) { + if (image->depth == 0) {P.S I'm just not to crazy about the depth equal zero thing. I just pitcure developers having a hard time with it.
Monochrome color expansion just works differently: it expands the zeroes and
ones in a bitmap based on fg_color and bg_color, while image drawing draws an
image containing colormap indices to the frame buffer.
Do you have a better suggestion?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com