We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1077

Summary: full screen blank/reset at SQL_Quit() on Windows
Product: SDL Reporter: zerothat
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: Other   
OS: Windows (XP)   

Description zerothat 2010-11-17 14:16:43 UTC
In SDL/src/video/win32/SDL_win32modes.c WIN_QuitModes(),

the ChangeDisplaySettingsEx(NULL, NULL, NULL, 0, NULL) call 

(which is defined to ChangeDisplaySettingsExA for me)

triggers a full screen black/reset.

Commenting out the ChangeDisplaySettingsEx call seems to eliminate the reset with no adverse consequences.
Comment 1 Nathaniel J Fries 2011-01-07 17:54:06 UTC
(In reply to comment #0)
> In SDL/src/video/win32/SDL_win32modes.c WIN_QuitModes(),
> 
> the ChangeDisplaySettingsEx(NULL, NULL, NULL, 0, NULL) call 
> 
> (which is defined to ChangeDisplaySettingsExA for me)
> 
> triggers a full screen black/reset.
> 
> Commenting out the ChangeDisplaySettingsEx call seems to eliminate the reset
> with no adverse consequences.

Looking at MSDN, I can't see a reason for this to fail.
Can you provide more details? Like, is it temporary or permanent? Does it happen everytime, or only under certain circumstances or even completely randomly? Does your application change any display's display mode or make a fullscreen window?
Comment 2 Sam Lantinga 2011-02-16 03:42:51 UTC
This is fixed in the latest snapshot, thanks!