Denis Oliver Kropp wrote:
>
> Daniel Laird wrote:
>> Any ideas on how I can remove the need for a Window Stack or solve what
>> is
>> accessing the lock->addr value?
>
> Three ideas:
>
> 1) Find out why the background is cleared at all, because
> layers != PRIMARY should have no background color set,
> or maybe it's black. The background mode for these layers
> should be DLBM_DONTCARE to solve the issue.
>
> 2) Not create a window stack when the layer has a certain
> capability, maybe add DLCAPS_NOWINDOWSTACK.
>
> 3) Allocate a dummy line of pixels in your surface pool and
> keep the pitch at 0 :-)
>
> Seems 3) is easiest...
>
> Cheers,
> Denis
> _______________________________________________
> directfb-dev mailing list
> directfb-dev@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>
>
Option 3 is probably the best but not the cleanest. I had a quick go with
option 2.
I modified dfb_layer_context_init in layer_context.c.
I added
/* Create the window stack if the layer supports it. */
if (!D_FLAGS_IS_SET( shared->description.caps, DLCAPS_NOWINDOWSTACK ))
{
context->stack = dfb_windowstack_create( context );
if (!context->stack) {
dfb_layer_context_unref( context );
return D_OOSHM();
}
/* Tell the window stack about its size. */
dfb_windowstack_resize( context->stack,
context->config.width,
context->config.height );
}
This seemed to do the job rather nicely. Can you see any drawbacks? know of
any hidden issues I might encounter.
Many thanks for help
Dan
--
View this message in context:
http://www.nabble.com/Virtual-Video-Surfaces-Revisited.-tp19290639p19291176.html
Sent from the DirectFB Dev mailing list archive at Nabble.com.
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev