From fcc6380c5b09a9293e90879669f8950ac3246208 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 16 Feb 2011 02:57:00 -0800 Subject: [PATCH] Setup the screensaver in the OpenGL case as well. --- src/SDL_compat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDL_compat.c b/src/SDL_compat.c index 0704c82ce..fdafd5c37 100644 --- a/src/SDL_compat.c +++ b/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; }