Hi all current git head I ran into a strange problem.

The main layer is giving a buffer mode of DLBM_BACKSYSTEM but the
drive is set up to give out  DLBM_BACKVIDEO

I had to hack around with this.

           if((ret = layer->GetConfiguration( layer, &layerConfig))) {

                    DirectFBError(
"IDirectFBDisplayLayer::GetSurface() failed", ret );

                    assert(0);

                }

                if(layerConfig.buffermode == DLBM_BACKSYSTEM ) {

                    layerConfig.buffermode = DLBM_BACKVIDEO;

                    layerConfig.flags = DLCONF_BUFFERMODE;

                    DFBCHECK(layer->SetConfiguration( layer, &layerConfig));

                }

            printf(" Layer: format=%d width=%d height=%d buffermode=%d
surface_caps=%d\n",layerConfig.pixel


This is with the X11 backend and the main screen layer

dfb->GetDisplayLayer( dfb, DLID_PRIMARY, &layer )

Now what I can't quite figure out is how this layer ended up configed
to BACKSYSTEM ?

Its easy to replicate just try and lock the primary surface layer with
the X11 backend and it fails.

I'm guessing this is a config error but I've not got buffermode set
anywhere I know of.
Maybe thats the problem. But if so shouldn't the X11 driver set it to
DLBM_BACKVIDEO ?

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

Reply via email to