Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Setup the screensaver in the OpenGL case as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 16, 2011
1 parent dd0ba89 commit fcc6380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDL_compat.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -631,8 +633,6 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)

ClearVideoSurface();

SetupScreenSaver(flags);

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

0 comments on commit fcc6380

Please sign in to comment.