projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver]
/
hacks
/
glx
/
lament.c
diff --git
a/hacks/glx/lament.c
b/hacks/glx/lament.c
index f29b4322daa6ca85c7a58a54cd663f329cdbc21a..777a5c648722f1c75c59b469efa5fca6df3d330f 100644
(file)
--- a/
hacks/glx/lament.c
+++ b/
hacks/glx/lament.c
@@
-32,7
+32,7
@@
"*wireframe: False \n" \
"*suppressRotationAnimation: True\n" \
"*wireframe: False \n" \
"*suppressRotationAnimation: True\n" \
-# define
refresh
_lament 0
+# define
free
_lament 0
# define release_lament 0
#include "xlockmore.h"
# 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 (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
/* 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;
{
lament_configuration *lc;
int i;
- MI_INIT (mi, lcs
, NULL
);
+ MI_INIT (mi, lcs);
lc = &lcs[MI_SCREEN(mi)];
lc = &lcs[MI_SCREEN(mi)];