Pablo León wrote: > Ville: > > I must be doing something wrong, since I get same results with or > without the lock/unlock code: > > void *ptr; > int pitch; > DFBCHECK > (primary->Lock(primary,DSLF_READ|DSLF_WRITE,&ptr,&pitch)); > DFBCHECK (buffer->Blit(buffer,primary,NULL,0,0)); > DFBCHECK (primary->Unlock(primary)); > > Can you see any obvious mistake?
You can't mix Lock() and render methods. The flags only affect the pointer that you get for direct access. If you want to use Blit() with explicit control over front/back buffer, it's better to create two surfaces with one buffer each. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
