*/
#include "screenhack.h"
+#include <time.h>
struct state {
Display *dpy;
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,
"*delay: 10000",
"*mode: random",
"*duration: 120",
-#ifdef USE_IPHONE
+#ifdef HAVE_MOBILE
"*ignoreRotation: True",
"*rotateImages: True",
#endif