src/video/SDL_video.c
changeset 8265 1ed54c57d6c7
parent 8153 3e43c73ac79b
child 8266 d123fc5d02bc
equal deleted inserted replaced
8264:70d4dc60aa01 8265:1ed54c57d6c7
   501     if (ShouldUseTextureFramebuffer()) {
   501     if (ShouldUseTextureFramebuffer()) {
   502         _this->CreateWindowFramebuffer = SDL_CreateWindowTexture;
   502         _this->CreateWindowFramebuffer = SDL_CreateWindowTexture;
   503         _this->UpdateWindowFramebuffer = SDL_UpdateWindowTexture;
   503         _this->UpdateWindowFramebuffer = SDL_UpdateWindowTexture;
   504         _this->DestroyWindowFramebuffer = SDL_DestroyWindowTexture;
   504         _this->DestroyWindowFramebuffer = SDL_DestroyWindowTexture;
   505     }
   505     }
       
   506 
       
   507     /* Disable the screen saver by default. This is a change from <= 2.0.1,
       
   508        but most things using SDL are games or media players; you wouldn't
       
   509        want a screensaver to trigger if you're playing exclusively with a
       
   510        joystick, or passively watching a movie. Things that use SDL but
       
   511        function more like a normal desktop app should explicitly reenable the
       
   512        screensaver. */
       
   513     SDL_DisableScreenSaver();
   506 
   514 
   507     /* If we don't use a screen keyboard, turn on text input by default,
   515     /* If we don't use a screen keyboard, turn on text input by default,
   508        otherwise programs that expect to get text events without enabling
   516        otherwise programs that expect to get text events without enabling
   509        UNICODE input won't get any events.
   517        UNICODE input won't get any events.
   510 
   518