X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fspheremonics.c;h=0da7b0c77c49e94aba190178a8e3618fc9d84db3;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=4ad36c8e170ad98bd5ed9e750e8dd780741bfcb3;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/glx/spheremonics.c b/hacks/glx/spheremonics.c index 4ad36c8e..0da7b0c7 100644 --- a/hacks/glx/spheremonics.c +++ b/hacks/glx/spheremonics.c @@ -851,7 +851,10 @@ draw_spheremonics (ModeInfo *mi) (y - 0.5) * 6, (z - 0.5) * 8); + /* Do it twice because we don't track the device's orientation. */ + glRotatef( current_device_rotation(), 0, 0, 1); gltrackball_rotate (cc->trackball); + glRotatef(-current_device_rotation(), 0, 0, 1); get_rotation (cc->rot, &x, &y, &z, !cc->button_down_p); glRotatef (x * 360, 1.0, 0.0, 0.0);