From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver] / hacks / glx / lament.c
index f29b4322daa6ca85c7a58a54cd663f329cdbc21a..777a5c648722f1c75c59b469efa5fca6df3d330f 100644 (file)
@@ -32,7 +32,7 @@
                        "*wireframe:    False   \n"     \
                        "*suppressRotationAnimation: True\n" \
 
-# define refresh_lament 0
+# define free_lament 0
 # define release_lament 0
 #include "xlockmore.h"
 
@@ -325,6 +325,9 @@ scale_for_window (ModeInfo *mi)
   if (MI_WIDTH(mi) > MI_HEIGHT(mi))
     scale /= MI_WIDTH(mi) / (GLfloat) MI_HEIGHT(mi);
 
+  /* If the window is super wide, make it bigger. */
+  if (scale < 8) scale = 8;
+
   /* Constrain it to roughly life-sized on the screen, not huge.
    */
 # ifdef HAVE_MOBILE
@@ -1705,7 +1708,7 @@ init_lament (ModeInfo *mi)
 {
   lament_configuration *lc;
   int i;
-  MI_INIT (mi, lcs, NULL);
+  MI_INIT (mi, lcs);
 
   lc = &lcs[MI_SCREEN(mi)];