X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Flament.c;h=777a5c648722f1c75c59b469efa5fca6df3d330f;hp=f29b4322daa6ca85c7a58a54cd663f329cdbc21a;hb=39809ded547bdbb08207d3e514950425215b4410;hpb=4361b69d3178d7fc98d0388f9a223af6c2651aba diff --git a/hacks/glx/lament.c b/hacks/glx/lament.c index f29b4322..777a5c64 100644 --- a/hacks/glx/lament.c +++ b/hacks/glx/lament.c @@ -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)];