It
is
possible
to
hold
locks
on
different
regions
of
the
same
surface,
thus
it
is
important
that
the
contents
of
the
Rect
parameter
be
the
same
as
was
passed
in
the
Rect
parameter
of
the
corresponding
TDx_DrawSurface::Lock().
SurfaceData
The SurfaceData parameter references a TRect defining the portion of the surface that is to be unlocked.
Set this parameter to NULL only when the DestRect parameter of TDx_DrawSurface::Lock() was also set to NULL when the surface was locked.