On Tue, Sep 02, 2003 at 09:05:38AM +0000, Sarfraz Nawaz wrote:
> Hello,
> 
> I am using RH9, DirectFB 0.9.19 with 2.4.22 kernel on a G450. Can anyone
> please guide me on how to access the hardware overlay function of G450
> using DirectFB. I want to draw simple rectangles, lines and some numbers
> on the overlay.

To get access to the BES you need to use IDirectFB::GetDisplayLayer().
BES's default layer ID is 1.
Then you need to se the layer's cooperative level to exclusive and set the
configuration you want. If you're planning to use DirectFB's drawing
functions you should probably set the layer to RGB mode because drawing to
YUV surfaces isn't fully implemented. Note that in RGB32 mode the BES
doesn't support horizontal scaling at all. Also in RGB modes scaling isn't
filtered :(
After you're done with the configuration use
IDirectFBDisplayLayer::GetSurface() and start drawing.

For more details check out the API docs, header files and example
programs (df_layer).

-- 
Ville Syrj�l�
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/


--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-users" as subject.

Reply via email to