Alt-Tabing
I wanted to know where i could find a good tutorial on how to do alt-tabing in my game. A tutorial that might explain how to restore the surfaces once alt- tabbed.
Thanks
Well, this is not the perfect way of doing it, but it works

HRESULT hr; hr = lpDDSBack->BltFast (0, 0, lpDDSSomething, NULL, DDBLTFAST_WAIT); if (hr == DDERR_SURFACELOST) { lpDDSPrimary->Restore (); lpDDSBack->Restore (); lpDDSSomething->Restore (); lpDDSSomething2->Restore (); if (SUCCEEDED(lpDDSSomething3->Restore ())) LoadGameArt (); }
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement