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?
BTW, I haven't found any explanation of the Lock/Unlock feature. Can you
give me a short description (or a link) of it?
Thank you very much.
Regards,
Pablo.
Ville Syrjälä escribió:
> On Sun, May 21, 2006 at 01:49:23AM +0200, Pablo León wrote:
>
>> Hi everyone,
>>
>> I have realized that when I read (blit) from the primary surface, image
>> comes from the active (visible) buffer,
>>
>
> Front buffer.
>
>
>> but when I write to it, image
>> goes to the inactive (shadow) buffer instead.
>>
>
> Back buffer.
>
>
>> Is this normal behaviour
>> or a bug?
>>
>
> Normal behaviour.
>
>
>> How can I read images from the inactive (shadow) buffer?
>>
>
> If you pass DSLF_READ|DSLF_WRITE to Lock() it should operate on the back
> buffer.
>
>
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users