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 Download
-------- --------
You can download a [tarball of the latest You can [browse the source](http://woozle.org/~neale/repos/?p=xss),
commit](http://woozle.org/~neale/repos/?p=xss;a=snapshot) or use git: 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/ 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 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. SIGCHLD for some reason.
* `magic` is probably abusing the X protocol, and may buy the farm after
a few hours.
History History
------- -------
AIX apparently had something also called `xss` which did almost exactly AIX apparently had something also called `xss` which did almost exactly
what mine does, but with command-line options. 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
`magic` is similar to the `qix` hack from xscreensaver and xlock. else like the rest of the programs, which is why I wrote them.
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 I lifted some code from `beforelight` from the X11 distribution, and
from `slock` from [suckless.org](http://suckless.org/). Both have a from `slock` from [suckless.org](http://suckless.org/). Both have a

View File

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