This topic is now archived and is closed to further replies.


DDraw 5 surface restoration

Recommended Posts

This is for DirectDraw version 5. Annoyingly, most surface methods (i.e. blit) can return DD_SURFACELOST if the surface gets lost, and then I have to restore them and write the data back. But what are the circumstances for this to happen. I would assume it only happens to surfaces in video memory and NEVER to surfaces in system memory. Is this a correct assumption? It would save memory if I only had to save a backup of surfaces that are in video memory.

Share this post

Link to post
Share on other sites