Disable Centscreen screensaver

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401106
This commit is contained in:
Patrice Mandin 2005-07-29 10:59:02 +00:00
parent 650743552c
commit 467a069a72

View file

@ -86,6 +86,11 @@ void SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
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)