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 - full screen blank/reset at SQL_Quit() on Windows
Summary: full screen blank/reset at SQL_Quit() on Windows
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: Other Windows (XP)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-17 14:16 UTC by zerothat
Modified: 2011-02-16 03:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!