X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fsierpinski3d.c;fp=hacks%2Fglx%2Fsierpinski3d.c;h=7bcefcf2c4a447837af5dcd5ce62389033292ecc;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=078369987583a6ab0e48a054a047c0ae478b23bf;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3;p=xscreensaver diff --git a/hacks/glx/sierpinski3d.c b/hacks/glx/sierpinski3d.c index 07836998..7bcefcf2 100644 --- a/hacks/glx/sierpinski3d.c +++ b/hacks/glx/sierpinski3d.c @@ -327,7 +327,10 @@ draw(ModeInfo *mi) (y - 0.5) * 10, (z - 0.5) * 20); + /* 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); get_rotation (gp->rot, &x, &y, &z, !gp->button_down_p); glRotatef (x * 360, 1.0, 0.0, 0.0);