Mike Emmel wrote:
> I added a call to GetVisibleRect which gives basically the visible
> region of the main surface in the subsurface coordinates seems to work
> but I'm thinking when you lock the surface
> one of the params should be a rectangle that is the visible rect ?

If someone's using sub surfaces, that one should be aware of the offset
and query the visible region - if needed - itself.

What about having something like Read() and Write() in IDirectFBSurface
to read/write blocks of data from/to the buffer with automatic locking,
offsets, clipping and *maybe* format conversion?

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

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

Reply via email to