OK, OK, I *promise* I'll think twice before posting next time :)
Here's a revised patch - a kern.warp_period = 0 signifies no direction
change, for those who prefer the old behavior.
G'luck,
Peter
--
This sentence no verb.
Patch against -current:
Index:
So.. if anybody else is using the warp screen saver, here's a little patch
to make it reverse direction from time to time; as my boss put it, "I don't
know about you, but an hour of your screen rolling over to the right makes
me dizzy." :)
This one defines two sysctl's - kern.warp_dir (zero to
Peter Pentchev [EMAIL PROTECTED] writes:
This one defines two sysctl's - kern.warp_dir (zero to roll to the left,
non-zero to roll the other way), and kern.warp_period (number of iterations
before changing direction). The warp_period is measured in.. seconds, isn't
it - how often the saver
On Mon, Dec 11, 2000 at 05:01:22PM +0100, Dag-Erling Smorgrav wrote:
Peter Pentchev [EMAIL PROTECTED] writes:
This one defines two sysctl's - kern.warp_dir (zero to roll to the left,
non-zero to roll the other way), and kern.warp_period (number of iterations
before changing direction).
On Mon, Dec 11, 2000 at 06:03:46PM +0200, Peter Pentchev wrote:
On Mon, Dec 11, 2000 at 05:01:22PM +0100, Dag-Erling Smorgrav wrote:
Peter Pentchev [EMAIL PROTECTED] writes:
This one defines two sysctl's - kern.warp_dir (zero to roll to the left,
non-zero to roll the other way), and
Peter Pentchev [EMAIL PROTECTED] writes:
SYSCTL_DECL(_kern_saver);
SYSCTL_DECL is for declaring a node that's defined elsewhere. You
should use the following instead:
SYSCTL_NODE(_kern, OID_AUTO, saver, CTLFLAG_RW, NULL, "Screensavers");
There's no substitute for reading src/sys/sys/sysctl.h.
On Mon, Dec 11, 2000 at 06:03:00PM +0100, Dag-Erling Smorgrav wrote:
Peter Pentchev [EMAIL PROTECTED] writes:
SYSCTL_DECL(_kern_saver);
SYSCTL_DECL is for declaring a node that's defined elsewhere. You
should use the following instead:
SYSCTL_NODE(_kern, OID_AUTO, saver, CTLFLAG_RW,
unsubscribe [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
8 matches
Mail list logo