Disable Centscreen screensaver

This commit is contained in:
Patrice Mandin
2005-07-29 10:59:02 +00:00
parent 085c49ae82
commit 05a866b5ef

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)