I'm working on a Direct Draw program. I'm having a weird problem though. Whenever I alt-tab out of it and then return everything goes black. It's still working, but the graphics disappear.
Is this caused by so called "lost surfaces"? How do I restore them?