Re: blanktime ?

New Message Reply Date view Thread view Subject view Author view

Arend Abbing (abbing%indigo-1++at++mscn.nl)
Fri, 29 Mar 1996 11:06:48 +0100


Hi,

On Mar 29, 8:45am, Lionel Maiaux wrote:
> Subject: blanktime ?
> In a performer program over IrisGL (so, I can post this e-mail in this
mailing
> list), I would like to :
> - save the current blank time with ??? and disable screen blanking with
> blanktime(0) at the beginning,
> - restore the saved blank time with blanktime(n) at the end
>
> Does anybody know how to get the current blank time ???
>
>-- End of excerpt from Lionel Maiaux

I guess the X server blanking capability is used so it should be something
like:

        Display *display;
        int timeout, interval, prefer_blanking, allow_exposures;

        /* Get current blanktime */
        display = XOpenDisplay(NULL);
        XGetScreenSaver(display, &timeout, &interval,
                &prefer_blanking, &allow_exposures);
        XCloseDisplay(display);

        blanktime(0);

        ....

        /* restore old value */

        blanktime(timeout * getgdesc(GD_TIMERHZ));

Regards,

Arend.

-- 
----------------------------------------------------------------------------
Arend Abbing 					Simulator Development
Maritime Simulation Centre The Netherlands	Email:	abbing++at++mscn.nl
Van Uvenweg 9, Wageningen			Phone:	(31)317-479911
P.O. Box 90, 6700 AB Wageningen				(31)317-479962
The Netherlands					Fax:	(31)317-479999
----------------------------------------------------------------------------

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:36 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.