src/SDL_compat.c
changeset 5312 035797f48321
parent 5309 da080d3247c9
child 5313 7a569d09a682
equal deleted inserted replaced
5311:be06989af398 5312:035797f48321
   556     }
   556     }
   557     if (window_flags & SDL_WINDOW_BORDERLESS) {
   557     if (window_flags & SDL_WINDOW_BORDERLESS) {
   558         surface_flags |= SDL_NOFRAME;
   558         surface_flags |= SDL_NOFRAME;
   559     }
   559     }
   560 
   560 
       
   561     SDL_VideoFlags = flags;
       
   562 
   561     /* If we're in OpenGL mode, just create a stub surface and we're done! */
   563     /* If we're in OpenGL mode, just create a stub surface and we're done! */
   562     if (flags & SDL_OPENGL) {
   564     if (flags & SDL_OPENGL) {
   563         SDL_VideoContext = SDL_GL_CreateContext(SDL_VideoWindow);
   565         SDL_VideoContext = SDL_GL_CreateContext(SDL_VideoWindow);
   564         if (!SDL_VideoContext) {
   566         if (!SDL_VideoContext) {
   565             return NULL;
   567             return NULL;
   624         SDL_FillRect(SDL_ShadowSurface, NULL,
   626         SDL_FillRect(SDL_ShadowSurface, NULL,
   625             SDL_MapRGB(SDL_ShadowSurface->format, 0, 0, 0));
   627             SDL_MapRGB(SDL_ShadowSurface->format, 0, 0, 0));
   626     }
   628     }
   627     SDL_PublicSurface =
   629     SDL_PublicSurface =
   628         (SDL_ShadowSurface ? SDL_ShadowSurface : SDL_VideoSurface);
   630         (SDL_ShadowSurface ? SDL_ShadowSurface : SDL_VideoSurface);
   629 
       
   630     SDL_VideoFlags = flags;
       
   631 
   631 
   632     ClearVideoSurface();
   632     ClearVideoSurface();
   633 
   633 
   634     SetupScreenSaver(flags);
   634     SetupScreenSaver(flags);
   635 
   635