Yes, I installed it with classic: aptitude install directfb

On Tue, Jul 24, 2012 at 9:03 AM, Alberich de megres
<alberich...@gmail.com>wrote:

> Hi Gian Lorenzo,
>
> How did you compiled directfb? Or are you using debian packages?
>
>
> On Tue, Jul 24, 2012 at 8:38 AM, Gian Lorenzo Meocci <glmeo...@gmail.com>
> wrote:
> > Hi,
> >
> > I am writing a C program for my Rasppberry PI unsign directfb 1.2.1 to
> show
> > a series of image like a "slideshow". I have a problem with double
> > buffering, this is my code:
> >
> > init (){
> >
> >   DFBSurfaceDescription dsc;
> >
> >   DFBCHECK (DirectFBInit (&argc, &argv));
> >   DFBCHECK (DirectFBCreate (&dfb));
> >
> >   DFBCHECK (dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN));
> >   //DFBCHECK (dfb->SetVideoMode(dfb, 1024, 768, DSPF_RGB16));
> >
> >   IDirectFBDisplayLayer *displayer = 0;
> >   DFBDisplayLayerConfig layerconfig;
> >   DFBCHECK (displayer->GetConfiguration( displayer, &layerconfig ));
> >
> >   dsc.flags = DSDESC_CAPS;
> >   dsc.caps  = (DFBSurfaceCapabilities) (DSCAPS_PRIMARY |
> DSCAPS_FLIPPING);
> >   DFBCHECK (dfb->CreateSurface( dfb, &dsc, &primary ));
> >   DFBCHECK (primary->GetSize (primary, &screen_width, &screen_height));
> > }
> >
> >
> > showimage() {
> >
> >   DFBCHECK (primary->FillRectangle (primary, 0, 0, screen_width,
> > screen_height));
> >   DFBCHECK (primary->Blit (primary, image, NULL, 0, 0));
> >   DFBCHECK (primary->Flip (primary, NULL, DSFLIP_WAITFORSYNC));
> >
> > }
> >
> >
> > It work by there is a lot of "flickering". Probabily WAITFORSYNC dosent
> > work. Any suggestion?
> >
> > Thanks
> >
> > --
> > GL
> > http://www.meocci.it
> >
> > _______________________________________________
> > directfb-dev mailing list
> > directfb-dev@directfb.org
> > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> >
>



-- 
GL
http://www.meocci.it
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to