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.21.tar.gz
[xscreensaver]
/
hacks
/
glx
/
moebius.c
diff --git
a/hacks/glx/moebius.c
b/hacks/glx/moebius.c
index a9dddf50c026f86de8487cddc9a4a0a88745cc8c..b7b83f202b0c1ace001c87583ff522178acbde30 100644
(file)
--- a/
hacks/glx/moebius.c
+++ b/
hacks/glx/moebius.c
@@
-440,8
+440,8
@@
draw_moebius_strip(ModeInfo * mi)
float Cx, Cy, Cz;
float Cx, Cy, Cz;
-#ifdef HAVE_JWZGLES
- solidmoebius = True;
/* no LINE PolygonMode */
+#ifdef HAVE_JWZGLES
/* #### glPolygonMode other than GL_FILL unimplemented */
+ solidmoebius = True;
#endif
if (solidmoebius) {
#endif
if (solidmoebius) {
@@
-761,7
+761,10
@@
draw_moebius (ModeInfo * mi)
glTranslatef(0.0, 0.0, -10.0);
glTranslatef(0.0, 0.0, -10.0);
+ /* Do it twice because we don't track the device's orientation. */
+ glRotatef( current_device_rotation(), 0, 0, 1);
gltrackball_rotate (mp->trackball);
gltrackball_rotate (mp->trackball);
+ glRotatef(-current_device_rotation(), 0, 0, 1);
if (!MI_IS_ICONIC(mi)) {
glScalef(Scale4Window * mp->WindH / mp->WindW, Scale4Window, Scale4Window);
if (!MI_IS_ICONIC(mi)) {
glScalef(Scale4Window * mp->WindH / mp->WindW, Scale4Window, Scale4Window);