Denis:

I understand. So, if I wish to keep a copy the buffer using direct 
access with lock(thiz,flags,&ret_ptr,&ret_pitch), how do I find the size 
of the memory area pointed by ret_ptr?

Regards.

Denis Oliver Kropp escribió:
> 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.
>
>   


_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to