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 054bc1c0a7b972d224b02ea8dc4dda64de33e1ed..bc925dd542b37629058448af639211711e2b7624 100644
(file)
--- a/
hacks/glx/gears.c
+++ b/
hacks/glx/gears.c
@@
-739,8
+739,6
@@
init_gears (ModeInfo *mi)
fprintf(stderr, "%s: out of memory\n", progname);
exit(1);
}
fprintf(stderr, "%s: out of memory\n", progname);
exit(1);
}
-
- bp = &bps[MI_SCREEN(mi)];
}
bp = &bps[MI_SCREEN(mi)];
}
bp = &bps[MI_SCREEN(mi)];
@@
-871,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);