On Thu, Mar 10, 2005 at 05:34:49PM +0100, Vincenzo Ampolo wrote:
> On Thu, 2005-03-10 at 15:52 +0200, Ville Syrj�l� wrote:
> > No errors. And the program does exactly what it should. If you want to
> > see 
> > something on the screen you must create a primary surface 
> > (DSCAPS_PRIMARY) and either render the image direcly to it or to 
> > an offscreen surface and blit to the primary surface.
> 
> are you talking about use the IDirectFBScreen interface and parse all
> hte stuff with:
> 
> Screen = surface??

No, IDirectFBScreen is a totally different interface for totally different 
things. You can create a primary surface with IDirectFB::CreateSurface().

Typically you would just do this:
dsc.flags = DSDESC_CAPS;
dsc.caps = DSCAPS_PRIMARY;
dfb->CreateSurface( dfb, &dsc, &surface );

The size and format depends on your directfbrc options. If your app needs 
a specific size/format you can put those in the DFBSurfaceDescription too 
so your directfbrc options won't matter. Usually that's a bad idea because 
no all hardware supports all formats and/or modes.

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

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to