Re: [AD] Disable screensaver |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-10-31, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> On Fri, October 31, 2008 2:50 pm, Evert Glebbeek said:
> > 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.
>
> Yeah, I was thinking the same thing, but I can't think of a better
> name.
What about: bool al_inhibit_screensaver(bool inhibit);
Pass true to prevent the screensaver from kicking in while the program
is running (not to change the system setting).
Pass false to restore default behaviour.
Peter