X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ftessellimage.c;h=d018f0cde4927ec531a693d815c401e0dc98049e;hp=b930622093a04acad585260bd4e2602ae7c80696;hb=d5186197bc394e10a4402f7f6d23fbb14103bc50;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e diff --git a/hacks/tessellimage.c b/hacks/tessellimage.c index b9306220..d018f0cd 100644 --- a/hacks/tessellimage.c +++ b/hacks/tessellimage.c @@ -543,6 +543,9 @@ tessellate (struct state *st) st->pgc = XCreateGC(st->dpy, st->image, GCFunction, &gcv); } + if (! st->nthreshes) return; + + /* If duration2 has expired, switch to the next threshold. */ if (! st->button_down_p) @@ -856,6 +859,14 @@ tessellimage_draw (Display *dpy, Window window, void *closure) 0, 0, st->delta->width, st->delta->height, (st->xgwa.width - st->delta->width) / 2, (st->xgwa.height - st->delta->height) / 2); + else if (!st->nthreshes) + XCopyArea (st->dpy, + st->image, + st->window, st->wgc, + 0, 0, st->xgwa.width, st->xgwa.height, + 0, + 0); + DONE: return st->delay;