You could try to configure layer's buffermode. As an example:

  DFBDisplayLayerConfig layerConfig;
  layerConfig.flags = DLCONF_NONE;
  layerConfig.flags |= DLCONF_BUFFERMODE;
  layerConfig.buffermode   = DLBM_BACKVIDEO;

  ret = layer->SetConfiguration(layer,&layerConfig);
  if (ret != DFB_OK)
    {
      DirectFBError ("gdk_display_open: SetConfiguration", ret);
      directfb->Release (directfb);
      directfb = NULL;
      return NULL;
    }

And remember that you need to flip manually.

On Sat, Nov 29, 2008 at 9:09 PM, Bajimohanreddy Bandi <
[EMAIL PROTECTED]> wrote:

> Hi,
>    How to use Double Buffering concept in DirectFB library.
> is it already implemented or we need to add any code.
>
> while creating surface i have used
> dsc.caps = DSCAPS_PRIMARY |DSCAPS_STATIC_ALLOC | DSCAPS_DOUBLE |
> DSCAPS_FLIPPING;
>
> this option but its giving bus error .
> i want to use double buffering to my application.can any one tell me how to
> use double buffering.
>
> Thanks
> Mohan.
>
> _______________________________________________
> directfb-users mailing list
> directfb-users@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>


-- 
Best regards,

Edmond
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to