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
/
glplanet.c
diff --git
a/hacks/glx/glplanet.c
b/hacks/glx/glplanet.c
index 21cf1f4db00680bc01fd55015817191df7a29bb7..98e13e8d38334fe36cc3846f41bbe4cf710e68d1 100644
(file)
--- a/
hacks/glx/glplanet.c
+++ b/
hacks/glx/glplanet.c
@@
-589,7
+589,10
@@
draw_planet (ModeInfo * mi)
(y - 0.5) * 15,
(z - 0.5) * 8);
(y - 0.5) * 15,
(z - 0.5) * 8);
+ /* Do it twice because we don't track the device's orientation. */
+ glRotatef( current_device_rotation(), 0, 0, 1);
gltrackball_rotate (gp->trackball);
gltrackball_rotate (gp->trackball);
+ glRotatef(-current_device_rotation(), 0, 0, 1);
glRotatef (90,1,0,0);
glRotatef (90,1,0,0);