Skip to content

Commit

Permalink
Remove unused SetupScreenSaver function.
Browse files Browse the repository at this point in the history
Reference Issue #143.
  • Loading branch information
icculus committed Jan 24, 2022
1 parent 63406f5 commit d76fd2c
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/SDL12_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -4594,30 +4594,6 @@ GetEnvironmentWindowPosition(int *x, int *y)
}
}

#if 0 /* unused, yet. */
static void
SetupScreenSaver(const int flags12)
{
const char *env;
SDL_bool allow_screensaver;

/* Allow environment override of screensaver disable */
env = SDL20_getenv("SDL_VIDEO_ALLOW_SCREENSAVER");
if (env) {
allow_screensaver = SDL20_atoi(env) ? SDL_TRUE : SDL_FALSE;
} else if (flags12 & SDL12_FULLSCREEN) {
allow_screensaver = SDL_FALSE;
} else {
allow_screensaver = SDL_TRUE;
}
if (allow_screensaver) {
SDL20_EnableScreenSaver();
} else {
SDL20_DisableScreenSaver();
}
}
#endif

static SDL12_Surface *
EndVidModeCreate(void)
{
Expand Down

0 comments on commit d76fd2c

Please sign in to comment.