X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fblitspin.c;h=a1eaf3138d5daf9cac9398ba4655aefe14ae56d2;hp=ec31aa09875d8fe41326f4c2c37e8c66b6cb4147;hb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5;hpb=2c902d6065f9856adf31e8540a94f1e42e68e905 diff --git a/hacks/blitspin.c b/hacks/blitspin.c index ec31aa09..a1eaf313 100644 --- a/hacks/blitspin.c +++ b/hacks/blitspin.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-1997, 2003 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); /* Reset the window's background color... */ XSetWindowBackground (dpy, window,