X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fsballs.c;h=833b0001ed7fade4429f3c154c2fbde46413e98a;hb=3f1091236d800c43a3124c44c7da54e53f205b13;hp=76b60ec03fe996e369ead30e9f4aa9884e263923;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/glx/sballs.c b/hacks/glx/sballs.c index 76b60ec0..833b0001 100644 --- a/hacks/glx/sballs.c +++ b/hacks/glx/sballs.c @@ -580,7 +580,10 @@ static void Draw(ModeInfo * mi) glEnd(); mi->polygon_count++; + /* Do it twice because we don't track the device's orientation. */ + glRotatef( current_device_rotation(), 0, 0, 1); gltrackball_rotate (sb->trackball); + glRotatef(-current_device_rotation(), 0, 0, 1); /* rotate the balls */ glRotatef(sb->rotm[0], 1.0f, 0.0f, 0.0f);