Hi,

This mailing-list is for discussing the development of DirectFB. If you
have questions regarding the use of DirectFB, please use the
directfb-users list.

On Fri, 2012-01-13 at 10:47 +0000, Andrew Oakley wrote:
> I've got some code that draws onto directfb surfaces by directly
> manipulating the pixel data for the surface.  The surface is created
> with DSDESC_PREALLOCATED with the DFBSurfaceDescription preallocated
> structure filled in.
> 
> I'd like to perform some of the drawing operations using the (hardware
> accelerated) directfb functions, but most of the drawing will still be
> performed by manipulating the surface data directly.
> 
> What do I have to do to ensure any directfb operations have completed
> before I can manipulate the surface data safely?

You need to Lock() the surface before you access the pixels directly and
UnLock() it afterwards.


Sven


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to