Hi.

Some time ago I asked a few questions and now I've finally taken some
time to implement what I wanted.  I wrote this example to contribute
back, which you can include in the main DirectFB distribution.
The example is a simple implementation of a monochrome blitter,
where the source font is stored in a 1-bit fashion and the hardware
colorizes it on the destination.

With the learned knowledge I plan to write a console hardware
accelerated emulation driver for a console program.

I have still some questions: if you change the depth of the text
surface to LUT8 and rename the code to use the *Index() functions,
nothing is blitted on the screen. Do I need a palette to make
this happen? What is more optimum for such an application? 8bit ->
32bit, 8bit -> 8bit, 32bit -> 32bit? The current example seems to
run extremely fast on my MG450, even though it is not optimized
and does really stupid things, but I guess others have slower cards.

Attachment: df_mono_text.c.gz
Description: application/gunzip

Reply via email to