comparison 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
comparison
equal deleted inserted replaced
3502:98a819296cdc 3503:7931094e4c48
1486 int i, j; 1486 int i, j;
1487 1487
1488 if (!_this) { 1488 if (!_this) {
1489 return; 1489 return;
1490 } 1490 }
1491
1491 /* Restore video mode, etc. */ 1492 /* Restore video mode, etc. */
1492 SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0); 1493 SDL_SetWindowFullscreen(windowID, 0);
1493 1494
1494 for (i = 0; i < _this->num_displays; ++i) { 1495 for (i = 0; i < _this->num_displays; ++i) {
1495 SDL_VideoDisplay *display = &_this->displays[i]; 1496 SDL_VideoDisplay *display = &_this->displays[i];
1496 for (j = 0; j < display->num_windows; ++j) { 1497 for (j = 0; j < display->num_windows; ++j) {
1497 SDL_Window *window = &display->windows[j]; 1498 SDL_Window *window = &display->windows[j];