Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Setup the screensaver in the OpenGL case as well.

  • Loading branch information
slouken committed Feb 16, 2011
1 parent dd0ba89 commit fcc6380c5b09a9293e90879669f8950ac3246208
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/SDL_compat.c
@@ -543,6 +543,8 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
}
SDL_SetWindowIcon(SDL_VideoWindow, SDL_VideoIcon);

SetupScreenSaver(flags);

window_flags = SDL_GetWindowFlags(SDL_VideoWindow);
surface_flags = 0;
if (window_flags & SDL_WINDOW_FULLSCREEN) {
@@ -631,8 +633,6 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)

ClearVideoSurface();

SetupScreenSaver(flags);

/* We're finally done! */
return SDL_PublicSurface;
}

0 comments on commit fcc6380

Please sign in to comment.