Thank you..That helped a lot.
On Wed, Feb 22, 2012 at 6:32 PM, haithem rahmani
<[email protected]>wrote:
> Hi,
>
>> I am trying to port DirectFB to an embedded system.
>> In my system, the layer has a viewport and an attached surface. In my
>> Initlayer function, I associate the layer with its surface.
>> When an application creates a primary surface, and draws something to it,
>> how should I get the data from that surface
>> to the surface associated with the viewport?
>>
>
> this is intternally managed by DirectFB.
>
> if you make a look at:
> *static DFBResult*
> *IDirectFB_CreateSurface( IDirectFB *thiz,*
> * const DFBSurfaceDescription *desc,*
> * IDirectFBSurface **interface )*
> *
> *
> in the file "src/idrectfb.c", there is this check:
>
> if (caps & DSCAPS_PRIMARY) {
> .
> .
>
> inside that check there is:
>
> switch (data->level) {
> .
> .
> .
> case DFSCL_FULLSCREEN:
> case DFSCL_EXCLUSIVE: {
>
>
> all what you asked for happens there.
>
> HtH.
>
>
>> I haven't understood how the primary surface relates to the surface
>> associated with the layer.
>> Thanks for your patience,
>>
>> Regards
>> Bobby
>>
>>
>>
>> _______________________________________________
>> directfb-dev mailing list
>> [email protected]
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>>
>>
>
>
> --
> *
> "If you ask a question - you will be a fool for 5 minutes, otherwise
> ignorant for rest of your life"
> *
>
>
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev