src/video/SDL_video.c
changeset 3517 e7eec78e4b92
parent 3516 72e70a8c30d5
child 3526 e6f2f312780f
     1.1 --- a/src/video/SDL_video.c	Thu Dec 03 05:05:26 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Thu Dec 03 08:33:39 2009 +0000
     1.3 @@ -768,6 +768,7 @@
     1.4              SDL_DisplayMode fullscreen_mode;
     1.5              if (SDL_GetWindowDisplayMode(window->id, &fullscreen_mode) == 0) {
     1.6                  SDL_SetDisplayModeForDisplay(display, &fullscreen_mode);
     1.7 +                display->fullscreen_window = window;
     1.8                  return;
     1.9              }
    1.10          }
    1.11 @@ -775,6 +776,7 @@
    1.12  
    1.13      /* Nope, restore the desktop mode */
    1.14      SDL_SetDisplayModeForDisplay(display, NULL);
    1.15 +    display->fullscreen_window = NULL;
    1.16  }
    1.17  
    1.18  int