Navigation Menu

Skip to content

Commit

Permalink
Disable Centscreen screensaver
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jul 29, 2005
1 parent e9d9266 commit f20ad5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/xbios/SDL_xbios_centscreen.c
Expand Up @@ -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)
Expand Down

0 comments on commit f20ad5b

Please sign in to comment.