From f20ad5b6abe1847a2d8f998ab270a00f45c82bd1 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Fri, 29 Jul 2005 10:59:02 +0000 Subject: [PATCH] Disable Centscreen screensaver --- src/video/xbios/SDL_xbios_centscreen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/xbios/SDL_xbios_centscreen.c b/src/video/xbios/SDL_xbios_centscreen.c index 248fcf0e0..fcb76337c 100644 --- a/src/video/xbios/SDL_xbios_centscreen.c +++ b/src/video/xbios/SDL_xbios_centscreen.c @@ -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)