*/
#include "screenhack.h"
+#include <time.h>
struct state {
Display *dpy;
gcflags |= GCSubwindowMode;
st->gc = XCreateGC (st->dpy, st->window, gcflags, &gcv);
- st->start_time = time ((time_t) 0);
+ st->start_time = time ((time_t *) 0);
decayscreen_load_image (st);
return st;
0, 0, 0, 0, 0);
if (! st->img_loader) { /* just finished */
- st->start_time = time ((time_t) 0);
+ st->start_time = time ((time_t *) 0);
if (st->random_p)
st->mode = random() % (FUZZ+1);
}
if (!st->img_loader &&
- st->start_time + st->duration < time ((time_t) 0)) {
+ st->start_time + st->duration < time ((time_t *) 0)) {
decayscreen_load_image (st);
}
"*delay: 10000",
"*mode: random",
"*duration: 120",
-#ifdef USE_IPHONE
+#ifdef HAVE_MOBILE
"*ignoreRotation: True",
"*rotateImages: True",
#endif