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.18.tar.gz
[xscreensaver]
/
hacks
/
glx
/
moebius.c
diff --git
a/hacks/glx/moebius.c
b/hacks/glx/moebius.c
index a9dddf50c026f86de8487cddc9a4a0a88745cc8c..e37294a1580dbb96eebcc990a668fe9d7816d2d3 100644
(file)
--- a/
hacks/glx/moebius.c
+++ b/
hacks/glx/moebius.c
@@
-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);