X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fsballs.c;h=833b0001ed7fade4429f3c154c2fbde46413e98a;hp=76b60ec03fe996e369ead30e9f4aa9884e263923;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 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);