X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Ferase.c;h=e056778899ba3612060186503f45ed865663f2bf;hp=4e7a9d40ca1184d50a60818d1722b9e2a1385e5c;hb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;hpb=de460e831dc8578acfa8b72251ab9346c99c1f96 diff --git a/utils/erase.c b/utils/erase.c index 4e7a9d40..e0567788 100644 --- a/utils/erase.c +++ b/utils/erase.c @@ -1,5 +1,5 @@ /* erase.c: Erase the screen in various more or less interesting ways. - * Copyright (c) 1997-2001, 2006 Jamie Zawinski + * Copyright (c) 1997-2008 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -513,7 +513,9 @@ slide_lines (eraser_state *st) for (y = 0; y < st->height; y += h) { - if (tick & 1) + if (st->width <= step) + ; + else if (tick & 1) { XCopyArea (st->dpy, st->window, st->window, st->fg_gc, 0, y, st->width-step, h, step, y);