Disable Centscreen screensaver
authorPatrice Mandin
Fri, 29 Jul 2005 10:59:02 +0000
changeset 11051c9988e47824
parent 1104 bf145eaf76ef
child 1106 524fd51f5d2c
Disable Centscreen screensaver
src/video/xbios/SDL_xbios_centscreen.c
     1.1 --- a/src/video/xbios/SDL_xbios_centscreen.c	Wed Jul 27 19:46:59 2005 +0000
     1.2 +++ b/src/video/xbios/SDL_xbios_centscreen.c	Fri Jul 29 10:59:02 2005 +0000
     1.3 @@ -86,6 +86,11 @@
     1.4  	newmode.physy = height;
     1.5  	newmode.plan = planes;
     1.6  	Vwrite(0, &newmode, &curmode);
     1.7 +
     1.8 +	/* Disable screensaver */
     1.9 +	Vread(&newmode);
    1.10 +	newmode.mode &= ~(CSCREEN_SAVER|CSCREEN_ENERGYSTAR);
    1.11 +	Vwrite(0, &newmode, &curmode);
    1.12  }
    1.13  
    1.14  void SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)