Advertisement

Alt-Tabing

Started by February 25, 2000 06:32 PM
1 comment, last by Phorisc 25 years ago
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 ();	}    
Advertisement
k, Thanks as long as it works

This topic is closed to new replies.

Advertisement