changeset 1105:1c9988e47824

Disable Centscreen screensaver
author Patrice Mandin <patmandin@gmail.com>
date Fri, 29 Jul 2005 10:59:02 +0000
parents bf145eaf76ef
children 524fd51f5d2c
files src/video/xbios/SDL_xbios_centscreen.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios_centscreen.c	Wed Jul 27 19:46:59 2005 +0000
+++ b/src/video/xbios/SDL_xbios_centscreen.c	Fri Jul 29 10:59:02 2005 +0000
@@ -86,6 +86,11 @@
 	newmode.physy = height;
 	newmode.plan = planes;
 	Vwrite(0, &newmode, &curmode);
+
+	/* Disable screensaver */
+	Vread(&newmode);
+	newmode.mode &= ~(CSCREEN_SAVER|CSCREEN_ENERGYSTAR);
+	Vwrite(0, &newmode, &curmode);
 }
 
 void SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)