I think you will have a to create the primary surface by modifying the
capabilities you provided to include

DSCAPS_PRIMARY | DSCAPS_FLIPPING

And you can only create one surface with primary capabilities.


Take a look at this example

http://directfb.org/docs/DirectFB_Tutorials/simple.html

Bobby


On Sun, May 24, 2015 at 5:38 AM, Alejandro Vázquez <vaz...@gmail.com> wrote:

> Hi!
> I want to draw a pair of surface but can not get me the paint well.
> First I create 2 surface.
> Surface 1: Draw a Rectangle color red.
> Surface 2: Draw a Rectangle color blue.
> Now i draw the surface 1 wait 5 second draw surface 2 and wait 5 second
> and draw surface 1 again.
> the first time paint the red rectangle but de second time paint both
> rectangle and the last time don't draw nothing.
>
> Am I doing it correctly?
> I add the code and the makefile.
>
> Thanks!
> Regards.
>
>
> _______________________________________________
> directfb-users mailing list
> directfb-users@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to