Mercurial > sdl-ios-xcode
diff src/video/xbios/SDL_xbios.c @ 3904:d8371d2dc524 SDL-1.2
Disable TurboVeille screensaver if present
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Thu, 11 Jan 2007 20:33:13 +0000 |
parents | 19555149bb66 |
children | 4d743a3d0bc1 |
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios.c Thu Jan 04 19:52:12 2007 +0000 +++ b/src/video/xbios/SDL_xbios.c Thu Jan 11 20:33:13 2007 +0000 @@ -49,6 +49,7 @@ #include "SDL_xbios_blowup.h" #include "SDL_xbios_centscreen.h" #include "SDL_xbios_sb3.h" +#include "SDL_xbios_tveille.h" #define XBIOS_VID_DRIVER_NAME "xbios" @@ -464,6 +465,11 @@ SDL_AtariGL_InitPointers(this); #endif + /* Disable screensavers */ + if (SDL_XBIOS_TveillePresent(this)) { + SDL_XBIOS_TveilleDisable(this); + } + /* We're done! */ return(0); } @@ -928,6 +934,11 @@ } this->screen->pixels = NULL; + + /* Restore screensavers */ + if (SDL_XBIOS_TveillePresent(this)) { + SDL_XBIOS_TveilleRestore(this); + } } #if SDL_VIDEO_OPENGL