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.35.tar.gz
[xscreensaver]
/
hacks
/
glx
/
moebiusgears.c
diff --git
a/hacks/glx/moebiusgears.c
b/hacks/glx/moebiusgears.c
index b8dd5a41160c76f74a55a02bc11cfd74e8956369..a65f5fcef2984740178c30e24b3e4962669c156b 100644
(file)
--- a/
hacks/glx/moebiusgears.c
+++ b/
hacks/glx/moebiusgears.c
@@
-13,6
+13,7
@@
"*count: 17 \n" \
"*showFPS: False \n" \
"*wireframe: False \n" \
"*count: 17 \n" \
"*showFPS: False \n" \
"*wireframe: False \n" \
+ "*suppressRotationAnimation: True\n" \
# define refresh_mgears 0
# define release_mgears 0
# define refresh_mgears 0
# define release_mgears 0
@@
-104,6
+105,14
@@
reshape_mgears (ModeInfo *mi, int width, int height)
0.0, 0.0, 0.0,
0.0, 1.0, 0.0);
0.0, 0.0, 0.0,
0.0, 1.0, 0.0);
+# ifdef HAVE_MOBILE /* Keep it the same relative size when rotated. */
+ {
+ int o = (int) current_device_rotation();
+ if (o != 0 && o != 180 && o != -180)
+ glScalef (1/h, 1/h, 1/h);
+ }
+# endif
+
glClear(GL_COLOR_BUFFER_BIT);
}
glClear(GL_COLOR_BUFFER_BIT);
}