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
/
glknots.c
diff --git
a/hacks/glx/glknots.c
b/hacks/glx/glknots.c
index 4738b71d999546596e50dbc6934565db1c6cb45f..6bf5ccd95df246d56f6eb9dca29dcfdbf1db0f10 100644
(file)
--- a/
hacks/glx/glknots.c
+++ b/
hacks/glx/glknots.c
@@
-416,7
+416,10
@@
draw_knot (ModeInfo *mi)
(y - 0.5) * 8,
(z - 0.5) * 15);
(y - 0.5) * 8,
(z - 0.5) * 15);
+ /* 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);