Disable Centscreen screensaver
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401106
This commit is contained in:
parent
650743552c
commit
467a069a72
1 changed files with 5 additions and 0 deletions
|
@ -86,6 +86,11 @@ void SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
|
||||||
newmode.physy = height;
|
newmode.physy = height;
|
||||||
newmode.plan = planes;
|
newmode.plan = planes;
|
||||||
Vwrite(0, &newmode, &curmode);
|
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)
|
void SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue