X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Ferase.c;h=05b213e2aec540a4fac553b57f2e4b0367b560a3;hp=e056778899ba3612060186503f45ed865663f2bf;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7 diff --git a/utils/erase.c b/utils/erase.c index e0567788..05b213e2 100644 --- 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); - double prev_ratio = (st->prev_ratio - mode1) / (mode2 - mode1); 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,