-/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997, 1998, 2004, 2006
- * Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1992-2011 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
/*inline*/ static int rnd( int q )
{
-
+ if (q < 1) q = 1;
return random() % q;
}
st->SCREEN_X = attr.width;
st->SCREEN_Y = attr.height;
-# ifndef HAVE_COCOA /* Don't second-guess Quartz's double-buffering */
+# ifndef HAVE_JWXYZ /* Don't second-guess Quartz's double-buffering */
XFreePixmap( st->dpy, worm->work );
worm->work = XCreatePixmap( st->dpy, st->window, st->SCREEN_X, st->SCREEN_Y, attr.depth );
# endif
st->SCREEN_X = attr.width;
st->SCREEN_Y = attr.height;
-# ifdef HAVE_COCOA /* Don't second-guess Quartz's double-buffering */
+# ifdef HAVE_JWXYZ /* Don't second-guess Quartz's double-buffering */
worm->work = st->window;
# else
worm->work = XCreatePixmap( st->dpy, st->window, st->SCREEN_X, st->SCREEN_Y, attr.depth );
static const char *wormhole_defaults [] = {
+ ".lowrez: true",
".background: Black",
".foreground: #E9967A",
"*delay: 10000",
"*zspeed: 10",
"*stars: 20",
+#ifdef HAVE_MOBILE
+ "*ignoreRotation: True",
+#endif
0
};