diff src/video/SDL_video.c @ 3503:7931094e4c48

Explicitly clear fullscreen status rather than relying on the window focus behavior.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Dec 2009 09:04:28 +0000
parents 98a819296cdc
children 42cfa69e351b
line wrap: on
line diff
--- a/src/video/SDL_video.c	Tue Dec 01 08:56:12 2009 +0000
+++ b/src/video/SDL_video.c	Tue Dec 01 09:04:28 2009 +0000
@@ -1488,8 +1488,9 @@
     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];