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
/
hilbert.c
diff --git
a/hacks/glx/hilbert.c
b/hacks/glx/hilbert.c
index c9ee163f648c4e73d6f89675330dd24a5e9e9620..d8966f45c339eed72cc0e5f09c2079ffb531c598 100644
(file)
--- a/
hacks/glx/hilbert.c
+++ b/
hacks/glx/hilbert.c
@@
-1017,7
+1017,10
@@
draw_hilbert (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);