RE: [GD-Windows] ChangeDisplaySettings and other windows
Brought to you by:
vexxed72
From: Andrew G. <ag...@cl...> - 2002-08-27 09:43:02
|
Yup that's right. The correct cleanup order should be Release all resources Release device Release D3D Destroy all GDI stuff Destroy window Andy @ Climax Brighton -----Original Message----- From: Gareth Lewin [mailto:GL...@cl...] Sent: 27 August 2002 09:00 To: Javier Arevalo; gam...@li... Subject: RE: [GD-Windows] ChangeDisplaySettings and other windows Hmm, I can't remember the solution, but the idea is a race condition between when you main window is destroyed and when you come out of fullscreen mode. The thing is to play with the order of those two. For example make sure that you destroy your direct3d device in responce to the WM_CLOSE message, so you know it is killed before the window. Or in respond to WM_DESTROY Or make sure that after the window has been killed the device is still alive and only destroy it in responce to WM_QUIT. Sorry haven't done this in a while. You might want to try the DirectXDev mailing list > -----Original Message----- > From: Javier Arevalo [mailto:ja...@py...] > Sent: 26 August 2002 07:54 > To: gam...@li... > Subject: Re: [GD-Windows] ChangeDisplaySettings and other windows > > > > 'It screws up my windows'. The problem is when their desktop is set > > to say 1024x768 and the game runs in a fullscreen resolution lower > > than that, say 640x480. When they exit the game, all their > previously > > opened windows have been clipped to 640x480 and maybe moved position > > Never heard of a solution that worked, plenty that didn't > work. I think it > is a Windows / DirectX design flaw. > > Javier Arevalo > Pyro Studios > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555 |