X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fmoebius.c;h=e37294a1580dbb96eebcc990a668fe9d7816d2d3;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=a9dddf50c026f86de8487cddc9a4a0a88745cc8c;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/glx/moebius.c b/hacks/glx/moebius.c index a9dddf50..e37294a1 100644 --- a/hacks/glx/moebius.c +++ b/hacks/glx/moebius.c @@ -761,7 +761,10 @@ draw_moebius (ModeInfo * mi) glTranslatef(0.0, 0.0, -10.0); + /* Do it twice because we don't track the device's orientation. */ + glRotatef( current_device_rotation(), 0, 0, 1); gltrackball_rotate (mp->trackball); + glRotatef(-current_device_rotation(), 0, 0, 1); if (!MI_IS_ICONIC(mi)) { glScalef(Scale4Window * mp->WindH / mp->WindW, Scale4Window, Scale4Window);