Commit eac4a9bf authored by Sam Lantinga's avatar Sam Lantinga

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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404244
parent b98089ee
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment