How do I detect when the gamer presses Alt+Tab to task my game, which the surfaces will be lost. And what do I need to do to restore it? Please give code examples.
If a DX function you call on a surface returns DDERR_SURFACELOST, then the memory associated with that surface was lost, and you have to call Restore on it. The DX SDK samples provide ample sample code for this.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement