From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver] / hacks / rorschach.c
index b4f4aa89068b0aa722146b68bd373d3ed9115b0e..ad96f99f94eaeb46471b0388103967d26eadc159 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1992-2008 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1992-2014 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
@@ -168,6 +168,12 @@ rorschach_draw (Display *dpy, Window window, void *closure)
 static Bool
 rorschach_event (Display *dpy, Window window, void *closure, XEvent *event)
 {
+  struct state *st = (struct state *) closure;
+  if (screenhack_event_helper (dpy, window, event))
+    {
+      st->remaining_iterations = 0;
+      return True;
+    }
   return False;
 }
 
@@ -188,6 +194,9 @@ static const char *rorschach_defaults [] = {
   "*iterations:        4000",
   "*offset:    7",
   "*delay:     5",
+#ifdef USE_IPHONE
+  "*ignoreRotation: True",
+#endif
   0
 };