Jump to content
  • Advertisement
Sign in to follow this  

DirectX 8.1 screensaver framework

This topic is 5037 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I'm using dx8.1 screensaver framework (d3dsaver.cpp,...). When in fullscreen I'm trying to destroy fullscreen d3d (after pressing key) and display configuration window. Strange thing is, that it works only sometimes - sometimes is fullscreen correctly destroyed and config is shown, but sometimes fullscreen just hangs always on top and config runs in background and is not visible. After pressing key I do:
Cleanup3DEnvironment();
DestroyWindow(m_hWnd);

MyInit(); // - copy of a constructor
					
m_myWin=true;
		
HRESULT hr;

if( FAILED( hr = Create( m_hInstBackup ) ) )
{
	DisplayErrorMsg( hr );
	return 0;
}
				
// Initialize the app's custom scene stuff
if( FAILED( hr = OneTimeSceneInit() ) )
{
	return DisplayErrorMsg( hr, MSGERR_APPMUSTEXIT );
}					

// Do graphical init stuff
if ( FAILED(hr = Initialize3DEnvironment()) )
{
	return hr;
}
					ShowWindow(m_hWnd,SW_HIDE);
m_bRegInterrupt=true;
and then in WinMain :
if(mySS.m_bRegInterrupt)
{
        mySS.DoConfig();
}
Anyone has better idea to hide a fullscreen ? thnx [Edited by - Coder on August 3, 2004 4:33:45 PM]

Share this post


Link to post
Share on other sites
Advertisement
OK. Problem solved.
Just remember.. always release everything before destroying window ( especially materials, textures and meshes ).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!