Fix color pop in magic

This commit is contained in:
Neale Pickett 2008-04-21 12:10:36 -06:00
parent 2d75ef7bc3
commit b2700f61e9
2 changed files with 12 additions and 12 deletions

20
README
View File

@ -70,8 +70,10 @@ won't lock if the cursor's at the top of the screen.
Download
--------
You can download a [tarball of the latest
commit](http://woozle.org/~neale/repos/?p=xss;a=snapshot) or use git:
You can [browse the source](http://woozle.org/~neale/repos/?p=xss),
download a [tarball of the latest
commit](http://woozle.org/~neale/repos/?p=xss;a=snapshot), or clone the
git repository:
git clone http://woozle.org/~neale/repos/xss/
@ -79,20 +81,18 @@ commit](http://woozle.org/~neale/repos/?p=xss;a=snapshot) or use git:
Bugs
----
* Sometimes xss quits launching anything. I suspect it's not getting
* Sometimes `xss` quits launching anything. I suspect it's not getting
SIGCHLD for some reason.
* `magic` is probably abusing the X protocol, and may buy the farm after
a few hours.
History
-------
AIX apparently had something also called `xss` which did almost exactly
what mine does, but with command-line options.
`magic` is similar to the `qix` hack from xscreensaver and xlock.
I'm not aware of anything else like the rest of the programs, which is
why I wrote them.
what mine does, but with command-line options. `magic` is similar to
the `qix` hack from xscreensaver and xlock. I'm not aware of anything
else like the rest of the programs, which is why I wrote them.
I lifted some code from `beforelight` from the X11 distribution, and
from `slock` from [suckless.org](http://suckless.org/). Both have a

View File

@ -36,9 +36,9 @@
if (b < -v) { \
a = -1 * (b + v); \
v *= -1; \
} else if (v > m - b) { \
a = (m*2) - (b + v); \
} else if (m - b <= v) { \
v *= -1; \
a = m - (m - b) + v; \
} else { \
a = b + v; \
}