From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver] / hacks / wormhole.c
index 86a6dcd54a7c6de513a7fc2cbf531ae45b64c46e..f28c5b2514640688032bdefd7be59347ab772dcd 100644 (file)
@@ -303,7 +303,7 @@ static void resizeWormhole( struct state *st, wormhole * worm )
        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
@@ -323,7 +323,7 @@ static void initWormhole( struct state *st, wormhole * worm, Display * display,
        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 );
@@ -703,11 +703,15 @@ wormhole_free (Display *dpy, Window window, void *closure)
 
 
 static const char *wormhole_defaults [] = {
+  ".lowrez:     true",
   ".background:        Black",
   ".foreground:        #E9967A",
   "*delay:     10000",
   "*zspeed:    10",
   "*stars:     20",
+#ifdef HAVE_MOBILE
+  "*ignoreRotation: True",
+#endif
   0
 };