From http://www.jwz.org/xscreensaver/xscreensaver-5.22.tar.gz
[xscreensaver] / hacks / whirlwindwarp.c
index 47939ffef11de9484ff6ab2545347538eab872b3..843a1cfbbcf4f4e1a419183ac8cff2502a8ff16b 100644 (file)
@@ -463,6 +463,9 @@ static void
 whirlwindwarp_reshape (Display *dpy, Window window, void *closure, 
                  unsigned int w, unsigned int h)
 {
+  struct state *st = (struct state *) closure;
+  st->scrwid = w;
+  st->scrhei = h;
 }
 
 static Bool
@@ -486,6 +489,9 @@ static const char *whirlwindwarp_defaults [] = {
   "*points:    400",
   "*tails:     8",
   "*meters:    false",
+#ifdef USE_IPHONE
+  "*ignoreRotation: True",
+#endif
   0
 };