X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Flament.c;h=777a5c648722f1c75c59b469efa5fca6df3d330f;hb=39809ded547bdbb08207d3e514950425215b4410;hp=770e13eefeffe6ec22ac0493003bf3b57f57ecfa;hpb=d5186197bc394e10a4402f7f6d23fbb14103bc50;p=xscreensaver diff --git a/hacks/glx/lament.c b/hacks/glx/lament.c index 770e13ee..777a5c64 100644 --- a/hacks/glx/lament.c +++ b/hacks/glx/lament.c @@ -29,8 +29,10 @@ #define DEFAULTS "*delay: 20000 \n" \ "*showFPS: False \n" \ - "*wireframe: False \n" -# define refresh_lament 0 + "*wireframe: False \n" \ + "*suppressRotationAnimation: True\n" \ + +# define free_lament 0 # define release_lament 0 #include "xlockmore.h" @@ -323,10 +325,13 @@ 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 USE_IPHONE - if (size > 768) /* iPad retina */ +# ifdef HAVE_MOBILE + if (size > 768) /* iPad retina / iPhone 6 */ target_size *= 1.5; else # endif @@ -453,8 +458,8 @@ leviathan (ModeInfo *mi, GLfloat ratio, GLfloat alpha, Bool top_p) int j = (i + 1) % countof(p); /* if (top_p)*/ do_normal (z, 0, 0, - 0, p[i].y, p[i].z, - 0, p[j].y, p[j].z); + 0, p[i].x, p[i].y, + 0, p[j].x, p[j].y); /* else do_normal (z, 0, 0, @@ -1703,16 +1708,7 @@ init_lament (ModeInfo *mi) { lament_configuration *lc; int i; - if (!lcs) - { - lcs = (lament_configuration *) - calloc(MI_NUM_SCREENS(mi), sizeof (lament_configuration)); - if (!lcs) - { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, lcs); lc = &lcs[MI_SCREEN(mi)];