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
/
gears.c
diff --git
a/hacks/glx/gears.c
b/hacks/glx/gears.c
index 42a9e70b02fe5ae2a4a6ca04e34ba138cd8f7741..bc925dd542b37629058448af639211711e2b7624 100644
(file)
--- a/
hacks/glx/gears.c
+++ b/
hacks/glx/gears.c
@@
-869,7
+869,10
@@
draw_gears (ModeInfo *mi)
(y - 0.5) * 4,
(z - 0.5) * 7);
(y - 0.5) * 4,
(z - 0.5) * 7);
+ /* Do it twice because we don't track the device's orientation. */
+ glRotatef( current_device_rotation(), 0, 0, 1);
gltrackball_rotate (bp->trackball);
gltrackball_rotate (bp->trackball);
+ glRotatef(-current_device_rotation(), 0, 0, 1);
get_rotation (bp->rot, &x, &y, &z, !bp->button_down_p);
get_rotation (bp->rot, &x, &y, &z, !bp->button_down_p);