Daniel Laird wrote: > In the driver I have written I have specified that the > config->buffermode = DLBM_FRONTONLY; > > The driver is loaded and initialised. > However you can see from the debug below that it tries to flip the surface > on my UYVY video layer, that has been specified as FRONTONLY. > > If I use 'layer-buffer-mode=frontonly' in my directfbrc file then it stops > this behaviour. > However I was wondering why I had to do this, I would have thought that > specifying it in my InitLayer code as above would work.
InitLayer gives the default for new contexts, but the initial context (shared context) is controlled by some automation, unless you set some values in the directfbrc. The automatic buffer mode depends on hardware acceleration. This only happened for the primary layer in 1.0.x, but in 1.2.x you can have DirectFB initialize all layers by using "init-layer = <id>" before using the layer runtime options in the directfbrc. The code moved from src/directfb.c (apply_configuration) to src/idirectfb.c (InitLayers). Denis _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev