mirror of
https://github.com/yawut/SDL.git
synced 2026-09-30 12:16:43 -05:00
Setup the screensaver in the OpenGL case as well.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user