Thanks Nikita, I could able to create surface with DFBSurfaceCapabilities set as DSCAPS_SUBSURFACE. Is this the right method to create user surface (other than primary)?
----- Original Message ---- From: Nikita Egorov <[EMAIL PROTECTED]> To: vijay anand <[EMAIL PROTECTED]> Cc: directfb-users@directfb.org Sent: Wednesday, 5 November, 2008 1:12:18 PM Subject: Re: [directfb-users] create surface/display layer failed You can't create a display layer if it is not supported by your hardware driver. You should use the IDirectFB::CreateSurface() function instead. http://directfb.org/docs/DirectFB_Reference_1_3/IDirectFB_CreateSurface.html 2008/11/5 vijay anand <[EMAIL PROTECTED]>: > 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 > -- Best Regards Nikita Egorov [EMAIL PROTECTED] [EMAIL PROTECTED] Get rid of Add-Ons in your email ID. Get [EMAIL PROTECTED] Sign up now! http://in.promos.yahoo.com/address _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users