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
/
gflux.c
diff --git
a/hacks/glx/gflux.c
b/hacks/glx/gflux.c
index 80310cc285efe7b7e950b5721daaf002be94798d..f3829b59c707efa6960344dd2da98bf92fbf92d5 100644
(file)
--- a/
hacks/glx/gflux.c
+++ b/
hacks/glx/gflux.c
@@
-281,7
+281,10
@@
gflux_handle_event (ModeInfo *mi, XEvent *event)
static void
userRot(gfluxstruct *gp)
{
static void
userRot(gfluxstruct *gp)
{
+ /* 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);
}
/* draw the gflux once */
}
/* draw the gflux once */