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.39.tar.gz
[xscreensaver]
/
hacks
/
glx
/
b_lockglue.c
diff --git
a/hacks/glx/b_lockglue.c
b/hacks/glx/b_lockglue.c
index cdc829e1b476a5927757e872e0a115ae3ce29c9c..1bb1e67979240ade1a3421ec6fbad7d82d0eaf8a 100644
(file)
--- a/
hacks/glx/b_lockglue.c
+++ b/
hacks/glx/b_lockglue.c
@@
-141,11
+141,9
@@
ENTRYPOINT void
reshape_bubble3d(ModeInfo *mi, int width, int height)
{
double h = (GLfloat) height / (GLfloat) width;
reshape_bubble3d(ModeInfo *mi, int width, int height)
{
double h = (GLfloat) height / (GLfloat) width;
- int y = 0;
if (width > height * 5) { /* tiny window: show middle */
height = width * 9/16;
if (width > height * 5) { /* tiny window: show middle */
height = width * 9/16;
- y = -height/2;
h = height / (GLfloat) width;
}
glViewport(0, 0, width, height);
h = height / (GLfloat) width;
}
glViewport(0, 0, width, height);