X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fdecayscreen.c;h=832b7ca7d3a71b72dead0b42db8623add01f7461;hb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c;hp=e2ce9a0963d347c00ea0a7851d47b185599d8403;hpb=d5186197bc394e10a4402f7f6d23fbb14103bc50;p=xscreensaver diff --git a/hacks/decayscreen.c b/hacks/decayscreen.c index e2ce9a09..832b7ca7 100644 --- a/hacks/decayscreen.c +++ b/hacks/decayscreen.c @@ -36,6 +36,7 @@ */ #include "screenhack.h" +#include struct state { Display *dpy; @@ -329,6 +330,7 @@ decayscreen_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { struct state *st = (struct state *) closure; + if (! st->saved) return; /* Image might not be loaded yet */ XClearWindow (st->dpy, st->window); XCopyArea (st->dpy, st->saved, st->window, st->gc, 0, 0, st->saved_w, st->saved_h, @@ -372,7 +374,7 @@ static const char *decayscreen_defaults [] = { "*delay: 10000", "*mode: random", "*duration: 120", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", "*rotateImages: True", #endif