* More framebuffer stuff...
@ 1999-10-31 2:25 David Riley
1999-10-31 20:25 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: David Riley @ 1999-10-31 2:25 UTC (permalink / raw)
To: linuxppc-dev
Well, I found a good site for framebuffer initing (though I should have
thought of mmap() before). However, now whenever I write to the
framebuffer, it seems to be using a color map instead of direct color
(unless I run my program under XF86). I made sure that it is in 32 or
16 bit color, and fb_*_screeninfo even reports a packed pixel display
using direct color. So why the colormap effect? And why not under XF86?
--
--"Your mouse has been moved. Windows 95 must be restarted for change
to take effect."
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: More framebuffer stuff...
1999-10-31 2:25 More framebuffer stuff David Riley
@ 1999-10-31 20:25 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 1999-10-31 20:25 UTC (permalink / raw)
To: David Riley; +Cc: linuxppc-dev
On Sat, 30 Oct 1999, David Riley wrote:
> Well, I found a good site for framebuffer initing (though I should have
> thought of mmap() before). However, now whenever I write to the
> framebuffer, it seems to be using a color map instead of direct color
> (unless I run my program under XF86). I made sure that it is in 32 or
> 16 bit color, and fb_*_screeninfo even reports a packed pixel display
> using direct color. So why the colormap effect? And why not under XF86?
You are confusing directcolor with truecolor.
Directcolor means that the r, g, and b components of a pixel are still passed
through a color map, like
red = rmap[r];
green = gmap[g];
blue = bmap[b];
To make text drawing simpler, the [rgb]maps are loaded with the console
paletter. You should load a linear palette (rmap[i] = gmap[i] = bmap[i] = i)
to emulate a truecolor display.
XF{68,86}_FBDev loads a linear color palette first, that's why it works there.
Gr{oetje,eeting}s,
--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- 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
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-10-31 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-31 2:25 More framebuffer stuff David Riley
1999-10-31 20:25 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).