X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fblitspin.c;h=18a26484af8791231cc93a4383ba4d526c72e0df;hb=2d04c4f22466851aedb6ed0f2919d148f726b889;hp=ec31aa09875d8fe41326f4c2c37e8c66b6cb4147;hpb=a94197e76a5dea5cb60542840809d6c20d0abbf3;p=xscreensaver diff --git a/hacks/blitspin.c b/hacks/blitspin.c index ec31aa09..18a26484 100644 --- a/hacks/blitspin.c +++ b/hacks/blitspin.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2005 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 @@ -90,11 +90,11 @@ read_screen (Display *dpy, Window window, int *widthP, int *heightP) *widthP = xgwa.width; *heightP = xgwa.height; - grab_screen_image(xgwa.screen, window); p = XCreatePixmap(dpy, window, *widthP, *heightP, xgwa.depth); gcv.function = GXcopy; gc = XCreateGC (dpy, window, GCFunction, &gcv); - XCopyArea (dpy, window, p, gc, 0, 0, *widthP, *heightP, 0, 0); + + load_random_image (xgwa.screen, window, p, NULL, NULL); /* Reset the window's background color... */ XSetWindowBackground (dpy, window,