From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver] / hacks / rorschach.c
index 1dc01d553bdbb54fb974782a89f695be84dc8ea5..6b2d7a3b88d49b7f0f85762489994a2d9cd6c1bd 100644 (file)
@@ -1,5 +1,4 @@
-/* xscreensaver, Copyright (c) 1992, 1996, 1998, 2001, 2006
- *  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
@@ -169,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;
 }
 
@@ -183,11 +188,15 @@ rorschach_free (Display *dpy, Window window, void *closure)
 static const char *rorschach_defaults [] = {
   ".background:        black",
   ".foreground:        white",
+  "*fpsSolid:  true",
   "*xsymmetry: true",
   "*ysymmetry: false",
   "*iterations:        4000",
   "*offset:    7",
   "*delay:     5",
+#ifdef HAVE_MOBILE
+  "*ignoreRotation: True",
+#endif
   0
 };