projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.12.tar.gz
[xscreensaver]
/
utils
/
erase.c
diff --git
a/utils/erase.c
b/utils/erase.c
index e056778899ba3612060186503f45ed865663f2bf..05b213e2aec540a4fac553b57f2e4b0367b560a3 100644
(file)
--- a/
utils/erase.c
+++ b/
utils/erase.c
@@
-574,12
+574,7
@@
losira (eraser_state *st)
else if (st->ratio < mode2) /* squeeze from the top/bottom */
{
double ratio = (st->ratio - mode1) / (mode2 - mode1);
else if (st->ratio < mode2) /* squeeze from the top/bottom */
{
double ratio = (st->ratio - mode1) / (mode2 - mode1);
- double prev_ratio = (st->prev_ratio - mode1) / (mode2 - mode1);
int max = st->height / 2;
int max = st->height / 2;
- int step = (max * ratio) - (max * prev_ratio);
-
- if (step <= 0)
- step = 1;
/* fill middle */
XFillRectangle (st->dpy, st->window, st->fg_gc,
/* fill middle */
XFillRectangle (st->dpy, st->window, st->fg_gc,