Try doing a flip of the primary surface after the blit.

On Thu, Nov 27, 2008 at 11:47 AM, vijay anand <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have created a separate surface with DFBSurfaceCapabilities flags
> (DSCAPS_DOUBLE | DSCAPS_VIDEOONLY).
> Please refer the attached test code which uses a separate (user) surface
> for Blit function. After Blitting the user surface into Primary surface it
> shows black screen instead of blitted image.
> Any idea about this behavior? Please help to resolve this issue.
>
> Regards,
> Vijay
> ------------------------------
> *From:* Amarinder Singh Sethi <[EMAIL PROTECTED]>
> *To:* vijay anand <[EMAIL PROTECTED]>
> *Cc:* directfb-users@directfb.org
> *Sent:* Thursday, 27 November, 2008 11:37:52 AM
> *Subject:* Re: [directfb-users] create surface/display layer failed
>
> If your requirement is just to have a surface to draw something to be
> blitted onto the primary surface later, then you don't really need a new
> layer. You can create a new surface and do all your drawings there. After
> this you can do a blit onto the primary surface.
>
> On Wed, Nov 5, 2008 at 12:52 PM, vijay anand <[EMAIL PROTECTED]>wrote:
>
>> Hi,
>>
>> In our application we are have 2 layers (primary and video layer).. I'm
>> trying to create
>> 3rd layer via GetDisplayLayer  (or CreateSurface) for drawing images into
>> that and later
>> we want to blit that surface into primary surface. Please refer the below
>> code
>> block which we use to create user layer. But it fails. We are unable to
>> test
>> blit functions. kindly help to resolve this issue.
>>
>> CreateUserLayer
>> ()
>> {
>>            IDirectFBDisplayLayer
>> *pdisplaylayer;
>>
>>            dfb->GetDisplayLayer
>> ( dfb, 2, &pdisplaylayer ); // this api call returns failure
>>
>>            if (ret || !
>> pdisplaylayer)
>>
>> {
>>
>> printf("failed to GetDisplayLayer\n");
>>                        return
>> false;
>>
>> }
>> }
>>
>> Regards,
>> Vijay
>>
>>
>>      Add more friends to your messenger and enjoy! Go to
>> http://messenger.yahoo.com/invite/
>>
>> _______________________________________________
>> directfb-users mailing list
>> directfb-users@directfb.org
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>>
>
>
>
> --
> ---------------
> Thanks
> Amarinder
>
> ------------------------------
> Get rid of Add-Ons in your email ID. Get [EMAIL PROTECTED] Sign up
> now!<http://in.rd.yahoo.com/tagline_dbid_11/*http://in.promos.yahoo.com/address>
>



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

Reply via email to