Setup the screensaver in the OpenGL case as well.
authorSam Lantinga <slouken@libsdl.org>
Wed, 16 Feb 2011 02:57:00 -0800
changeset 53137a569d09a682
parent 5312 035797f48321
child 5314 ead9bbbdcaf3
Setup the screensaver in the OpenGL case as well.
src/SDL_compat.c
     1.1 --- a/src/SDL_compat.c	Wed Feb 16 02:55:46 2011 -0800
     1.2 +++ b/src/SDL_compat.c	Wed Feb 16 02:57:00 2011 -0800
     1.3 @@ -543,6 +543,8 @@
     1.4      }
     1.5      SDL_SetWindowIcon(SDL_VideoWindow, SDL_VideoIcon);
     1.6  
     1.7 +    SetupScreenSaver(flags);
     1.8 +
     1.9      window_flags = SDL_GetWindowFlags(SDL_VideoWindow);
    1.10      surface_flags = 0;
    1.11      if (window_flags & SDL_WINDOW_FULLSCREEN) {
    1.12 @@ -631,8 +633,6 @@
    1.13  
    1.14      ClearVideoSurface();
    1.15  
    1.16 -    SetupScreenSaver(flags);
    1.17 -
    1.18      /* We're finally done! */
    1.19      return SDL_PublicSurface;
    1.20  }