mirror of
https://github.com/yawut/SDL.git
synced 2026-06-24 13:30:54 -05:00
Explicitly clear fullscreen status rather than relying on the window focus behavior.
This commit is contained in:
parent
fcd49aba49
commit
4fb5822326
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user