Hell, i have a function to implement that returns a pointer to an array of pixels representing the pixels in the specified row of the surface columns from x (inclusive) to x + w (exclusive), I implemented it like this......
{ void *data; int pitch; surface->Lock(surface, DSLF_READ, &data, &pitch ); return (pointer *)data + pitch*row; } running this function is aborting the program with this message...... DirectFBError [>surface->Lock( surface, (DFBSurfaceLockFlags)(DSLF_READ | DSLF_WRITE), &data, &pitch )]: Resource is locked! -- Regards Ravi Swami EnMedia Software Technologies Ph +91-974-264-3747
_______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users