Re: [AD] Disable screensaver |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
On 31 Oct 2008, at 20:13, Trent Gamblin wrote:
One issue though. If the screensaver is already deactivated by the user, should al_set_screensaver_active(true) turn it on or should it just undo any calls the user made to turn it off in the Allegro program? The problem with turning it on if it's disabled is the program could crash and leave the screensaver enabled.
Right, so passing false should switch it off, passing true should switch it back to the state it was in before al_set_screensaver_active (false) was called. Maybe we need a different name in that case.
Evert
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |