On Tue, 2 Sep 2003 13:11:11 +0300 Ville Syrj�l� wrote:

> 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.
> 
> 
I've proceeded as you suggested but I am not able to see what I draw on
the BES layer. I think I am not doing something (I am only a novice with
directfb). I am attaching the code. What is wrong with it. I'll
appreciate the help.

Regards




This message powered by EMUmail.  http://EMUmail.com


Attachment: fboverlay.c
Description: Binary data

Reply via email to