Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
3903:5baad3758427 | 3904:d8371d2dc524 |
---|---|
47 #include "../ataricommon/SDL_atarigl_c.h" | 47 #include "../ataricommon/SDL_atarigl_c.h" |
48 #include "SDL_xbios.h" | 48 #include "SDL_xbios.h" |
49 #include "SDL_xbios_blowup.h" | 49 #include "SDL_xbios_blowup.h" |
50 #include "SDL_xbios_centscreen.h" | 50 #include "SDL_xbios_centscreen.h" |
51 #include "SDL_xbios_sb3.h" | 51 #include "SDL_xbios_sb3.h" |
52 #include "SDL_xbios_tveille.h" | |
52 | 53 |
53 #define XBIOS_VID_DRIVER_NAME "xbios" | 54 #define XBIOS_VID_DRIVER_NAME "xbios" |
54 | 55 |
55 /* Debug print info */ | 56 /* Debug print info */ |
56 #if 0 | 57 #if 0 |
462 | 463 |
463 #if SDL_VIDEO_OPENGL | 464 #if SDL_VIDEO_OPENGL |
464 SDL_AtariGL_InitPointers(this); | 465 SDL_AtariGL_InitPointers(this); |
465 #endif | 466 #endif |
466 | 467 |
468 /* Disable screensavers */ | |
469 if (SDL_XBIOS_TveillePresent(this)) { | |
470 SDL_XBIOS_TveilleDisable(this); | |
471 } | |
472 | |
467 /* We're done! */ | 473 /* We're done! */ |
468 return(0); | 474 return(0); |
469 } | 475 } |
470 | 476 |
471 static SDL_Rect **XBIOS_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags) | 477 static SDL_Rect **XBIOS_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags) |
926 XBIOS_nummodes=0; | 932 XBIOS_nummodes=0; |
927 XBIOS_modelist=NULL; | 933 XBIOS_modelist=NULL; |
928 } | 934 } |
929 | 935 |
930 this->screen->pixels = NULL; | 936 this->screen->pixels = NULL; |
937 | |
938 /* Restore screensavers */ | |
939 if (SDL_XBIOS_TveillePresent(this)) { | |
940 SDL_XBIOS_TveilleRestore(this); | |
941 } | |
931 } | 942 } |
932 | 943 |
933 #if SDL_VIDEO_OPENGL | 944 #if SDL_VIDEO_OPENGL |
934 | 945 |
935 static void XBIOS_GL_SwapBuffers(_THIS) | 946 static void XBIOS_GL_SwapBuffers(_THIS) |