Re: [AD] Disable screensaver

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Friday 31 October 2008, Trent Gamblin wrote:
> On Fri, October 31, 2008 10:44 am, Miquel 'Fire' Burns said:
> > Sadly no. I do remember seeing such code however. Maybe it's in the
> > archives here?
>
> Ok, I've found it as part of WM_SYSCOMMAND. I've tested it and it
> works.
>
> 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.

I think allegro should do what it can to return it to the state it found it. 
Or if it changes behind allegro's back, allegro should not touch it (imo).

> Trent :{)>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/