Deng XueFeng wrote: > hi, > how to change the pixel format of tmp surface got by GetSubSurface?
You don't get a sub surface of a tmp surface. I thought about this (example with two threads): - Create Main Surface (&pMain) - GetSubSurface (pMain, NULL, &pSub1) - GetSubSurface (pMain, NULL, &pSub2) - Create Temp Surface (&pTmp1) - Create Temp Surface (&pTmp2) Thread1 - pSub1->Blit( pSub1, pTmp1 ) Thread2 - pSub2->Blit( pSub2, pTmp2 ) -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev