The
TDx_DrawSurface::Restore
method
will
restore
a
lost
memory
surface
by
reallocating
and
reattaching
the
memory.
Allocated
surface
memory
will
be
restored,
but
it
is
the
responsibility
of
the
application
to
restore
the
contents
of
the
surface.
Lost
surfaces
may
be
caused
by
display
card
mode
changes
or
another
application
acquiring
access
and
freeing
all
the
display
card
surface
memory.
All
associated
implicitly
created
surfaces
will
be
restored
in
a
single
call,
while
surfaces
that
have
been
explicitly
attached
will
require
individual
restoration.
Attempting
to
directly
restore
an
implicitly
created
surface
will
result
in
an
error.