src/SDL_compat.c
changeset 5313 7a569d09a682
parent 5312 035797f48321
child 5466 006883d5fa51
equal deleted inserted replaced
5312:035797f48321 5313:7a569d09a682
   541     if (!SDL_VideoWindow) {
   541     if (!SDL_VideoWindow) {
   542         return NULL;
   542         return NULL;
   543     }
   543     }
   544     SDL_SetWindowIcon(SDL_VideoWindow, SDL_VideoIcon);
   544     SDL_SetWindowIcon(SDL_VideoWindow, SDL_VideoIcon);
   545 
   545 
       
   546     SetupScreenSaver(flags);
       
   547 
   546     window_flags = SDL_GetWindowFlags(SDL_VideoWindow);
   548     window_flags = SDL_GetWindowFlags(SDL_VideoWindow);
   547     surface_flags = 0;
   549     surface_flags = 0;
   548     if (window_flags & SDL_WINDOW_FULLSCREEN) {
   550     if (window_flags & SDL_WINDOW_FULLSCREEN) {
   549         surface_flags |= SDL_FULLSCREEN;
   551         surface_flags |= SDL_FULLSCREEN;
   550     }
   552     }
   628     }
   630     }
   629     SDL_PublicSurface =
   631     SDL_PublicSurface =
   630         (SDL_ShadowSurface ? SDL_ShadowSurface : SDL_VideoSurface);
   632         (SDL_ShadowSurface ? SDL_ShadowSurface : SDL_VideoSurface);
   631 
   633 
   632     ClearVideoSurface();
   634     ClearVideoSurface();
   633 
       
   634     SetupScreenSaver(flags);
       
   635 
   635 
   636     /* We're finally done! */
   636     /* We're finally done! */
   637     return SDL_PublicSurface;
   637     return SDL_PublicSurface;
   638 }
   638 }
   639 
   639