Erick Galassi wrote:
> Hi, 
> 
>   I´ retriving this surface using GetSurface from the DisplayLayer object.
> How can I reallocate a surface that I already have ? This part of the code: 
> 
>   IDirectFBSurface *primary;
>   IDirectFBDisplayLayer *layer; 
> 
>   dfb->GetDisplayLayer(dfb,layer_id,&layer);
>   layer->SetCooperativeLeve(layer,DLSCL_EXCLUSIVE);

As Richard pointed out, insert this here:

DFBDisplayLayerConfiguration config;

config.flags      = DLCONF_BUFFERMODE;
config.buffermode = DLBM_BACKVIDEO;

layer->SetConfiguration( layer, &config );

>   layer->GetSurface(layer,&primary);



Do you know if you have hardware accelerated blending?

If not and if you're using a lot of blending, better
use DLBM_BACKSYSTEM, because it's still faster to prepare
everything in system memory and just write into video
memory instead of read/write when software does blending.

Anyways, never heard of something like StbRend5L, can only guess
which hardware the driver is for, is that info confidential?

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

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

Reply via email to