mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 02:05:07 -05:00
Disable Centscreen screensaver
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user