Reference Manual - 1.8.0
IDirectFBSurface   Lock

Lock the surface for the access type specified.

DFBResult Lock (
  IDirectFBSurface   * thiz,
  DFBSurfaceLockFlags   flags,
  void   ** ret_ptr,
  int   * ret_pitch

Returns a data pointer and the line pitch of it.

Note: If the surface is double/triple buffered and the DSLF_WRITE flag is specified, the pointer is to the back buffer. In all other cases, the pointer is to the front buffer.

Creative Commons License This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License