From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver] / hacks / glx / glblur.c
index 95c4110a3408111d54c19b2d6dcbef4db7465330..ab3f6501f0b804e21473886d6c7bbee3e2a5ec6f 100644 (file)
@@ -24,7 +24,8 @@
 
 #define DEFAULTS       "*delay:    10000 \n" \
                        "*showFPS:  False \n" \
-                       "*fpsSolid: True  \n"
+                       "*fpsSolid: True  \n" \
+                       "*suppressRotationAnimation: True\n" \
 
 # define refresh_glblur 0
 # define release_glblur 0
@@ -124,6 +125,14 @@ reshape_glblur (ModeInfo *mi, int width, int height)
              0.0, 0.0, 0.0,
              0.0, 1.0, 0.0);
 
+# ifdef HAVE_MOBILE    /* Keep it the same relative size when rotated. */
+  {
+    int o = (int) current_device_rotation();
+    if (o != 0 && o != 180 && o != -180)
+      glScalef (1/h, 1/h, 1/h);
+  }
+# endif
+
   glClear(GL_COLOR_BUFFER_BIT);
 }