Primary surface's capabilities have been set in main.c function. But in my sub-function I want to change primary surface's caps. Is there any API? I just fine "GetCapabilities()".
Such as: In main.c I create primary surface with double buffer.
surfaceDesc.flags = DSDESC_CAPS;
surfaceDesc.caps = DSCAPS_PRIMARY | DSCAPS_DOUBLE | DSCAPS_STATIC_ALLOC;
dfb->CreateSurface(dfb, &surfaceDesc, &primary) );
surfaceDesc.caps = DSCAPS_PRIMARY | DSCAPS_DOUBLE | DSCAPS_STATIC_ALLOC;
dfb->CreateSurface(dfb, &surfaceDesc, &primary) );
But in my sub-function I just want to use "Blit()" instead of "
Flip()", then I should disable double buffer. What API I shoud use?
_______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
