X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fgflux.c;fp=hacks%2Fglx%2Fgflux.c;h=f3829b59c707efa6960344dd2da98bf92fbf92d5;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=80310cc285efe7b7e950b5721daaf002be94798d;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3;p=xscreensaver diff --git a/hacks/glx/gflux.c b/hacks/glx/gflux.c index 80310cc2..f3829b59 100644 --- 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) { + /* Do it twice because we don't track the device's orientation. */ + glRotatef( current_device_rotation(), 0, 0, 1); gltrackball_rotate (gp->trackball); + glRotatef(-current_device_rotation(), 0, 0, 1); } /* draw the gflux once */