Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios_centscreen.c @ 1105:1c9988e47824
Disable Centscreen screensaver
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Fri, 29 Jul 2005 10:59:02 +0000 |
parents | fba6b67b4d60 |
children | 3692456e7b0f |
comparison
equal
deleted
inserted
replaced
1104:bf145eaf76ef | 1105:1c9988e47824 |
---|---|
84 newmode.handle = newmode.mode = newmode.logx = newmode.logy = -1; | 84 newmode.handle = newmode.mode = newmode.logx = newmode.logy = -1; |
85 newmode.physx = width; | 85 newmode.physx = width; |
86 newmode.physy = height; | 86 newmode.physy = height; |
87 newmode.plan = planes; | 87 newmode.plan = planes; |
88 Vwrite(0, &newmode, &curmode); | 88 Vwrite(0, &newmode, &curmode); |
89 | |
90 /* Disable screensaver */ | |
91 Vread(&newmode); | |
92 newmode.mode &= ~(CSCREEN_SAVER|CSCREEN_ENERGYSTAR); | |
93 Vwrite(0, &newmode, &curmode); | |
89 } | 94 } |
90 | 95 |
91 void SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle) | 96 void SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle) |
92 { | 97 { |
93 centscreen_mode_t newmode, curmode; | 98 centscreen_mode_t newmode, curmode; |