Explicitly clear fullscreen status rather than relying on the window focus behavior.

This commit is contained in:
Sam Lantinga 2009-12-01 09:04:28 +00:00
parent fcd49aba49
commit 4fb5822326

View File

@ -1488,8 +1488,9 @@ SDL_DestroyWindow(SDL_WindowID windowID)
if (!_this) {
return;
}
/* Restore video mode, etc. */
SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
SDL_SetWindowFullscreen(windowID, 0);
for (i = 0; i < _this->num_displays; ++i) {
SDL_VideoDisplay *display = &_this->displays[i];