You get a warning when you lose the surface. You do a lock. Work on the
memory. Then an unlock. You are guaranteed to have that memory when it is
locked. If you do a lock and the surface is lost it will tell you. It has
been several years since I have worked with DD, but thats the way I remember
it. Am I getting something wrong here?
> DD->CreateSurface(VIDEOMEMORY)
>
> direct access: YES
> live in VRAM?: YES
> persistent: NO (SurfaceLost happens without warning)
> There may be some non-public DirectDraw APIs to do what we need, but
> we are still investigating. If anyone knows of any other APIs or
> CreateSurface flags (or a way to trap the SurfaceLost condition for
> VRAM surfaces), please send us a pointer...
>
> ...jim
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".